Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/nvidia sdhc: tegra: Set SDHC_FLAG_BROKEN_ADMA2_...
details: https://anonhg.NetBSD.org/src/rev/77ac2a126492
branches: trunk
changeset: 359989:77ac2a126492
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Feb 06 15:40:55 2022 +0000
description:
sdhc: tegra: Set SDHC_FLAG_BROKEN_ADMA2_ZEROLEN quirk flag.
The Tegra SDHCI implementation apparently treats ADMA2 descriptors with
length of 0 incorrectly.
diffstat:
sys/arch/arm/nvidia/tegra_sdhc.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r e94cbf429b1b -r 77ac2a126492 sys/arch/arm/nvidia/tegra_sdhc.c
--- a/sys/arch/arm/nvidia/tegra_sdhc.c Sun Feb 06 12:12:08 2022 +0000
+++ b/sys/arch/arm/nvidia/tegra_sdhc.c Sun Feb 06 15:40:55 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_sdhc.c,v 1.30 2022/01/22 15:10:30 skrll Exp $ */
+/* $NetBSD: tegra_sdhc.c,v 1.31 2022/02/06 15:40:55 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
#include "locators.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.30 2022/01/22 15:10:30 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.31 2022/02/06 15:40:55 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -130,7 +130,8 @@
SDHC_FLAG_SINGLE_POWER_WRITE |
SDHC_FLAG_NO_HS_BIT |
SDHC_FLAG_USE_DMA |
- SDHC_FLAG_USE_ADMA2;
+ SDHC_FLAG_USE_ADMA2 |
+ SDHC_FLAG_BROKEN_ADMA2_ZEROLEN;
if (bus_width == 8) {
sc->sc.sc_flags |= SDHC_FLAG_8BIT_MODE;
}
Home |
Main Index |
Thread Index |
Old Index