Module Name: src
Committed By: bsh
Date: Sat Jun 26 07:51:45 UTC 2010
Modified Files:
src/sys/arch/evbarm/g42xxeb: g42xxeb_mci.c
Log Message:
Don't use DMA for sdmmc on TWINTAIL for now, because it causes kernel panic.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/g42xxeb/g42xxeb_mci.c
diff -u src/sys/arch/evbarm/g42xxeb/g42xxeb_mci.c:1.1 src/sys/arch/evbarm/g42xxeb/g42xxeb_mci.c:1.2
--- src/sys/arch/evbarm/g42xxeb/g42xxeb_mci.c:1.1 Sat Mar 13 11:37:47 2010
+++ src/sys/arch/evbarm/g42xxeb/g42xxeb_mci.c Sat Jun 26 07:51:45 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: g42xxeb_mci.c,v 1.1 2010/03/13 11:37:47 bsh Exp $ */
+/* $NetBSD: g42xxeb_mci.c,v 1.2 2010/06/26 07:51:45 bsh Exp $ */
/*-
* Copyright (c) 2009 Genetec Corporation. All rights reserved.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: g42xxeb_mci.c,v 1.1 2010/03/13 11:37:47 bsh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: g42xxeb_mci.c,v 1.2 2010/06/26 07:51:45 bsh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -163,6 +163,9 @@
pxa.pxa_intr = PXA2X0_INT_MMC;
#endif
+ /* disable DMA for sdmmc for now. */
+ SET(sc->sc_mci.sc_caps, PMC_CAPS_NO_DMA);
+
if (pxamci_attach_sub(self, &pxa)) {
aprint_error_dev(self,
"unable to attach MMC controller\n");