Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc eSDHC Controller doesn't have "Host SDMA Buffe...
details: https://anonhg.NetBSD.org/src/rev/e04ae4b6e999
branches: trunk
changeset: 329439:e04ae4b6e999
user: hkenken <hkenken%NetBSD.org@localhost>
date: Sat May 24 12:10:32 2014 +0000
description:
eSDHC Controller doesn't have "Host SDMA Buffer Boundary" bit field
diffstat:
sys/dev/sdmmc/sdhc.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r e493a93229fd -r e04ae4b6e999 sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c Sat May 24 07:42:45 2014 +0000
+++ b/sys/dev/sdmmc/sdhc.c Sat May 24 12:10:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhc.c,v 1.43 2013/01/10 17:19:33 jmcneill Exp $ */
+/* $NetBSD: sdhc.c,v 1.44 2014/05/24 12:10:32 hkenken Exp $ */
/* $OpenBSD: sdhc.c,v 1.25 2009/01/13 19:44:20 grange Exp $ */
/*
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.43 2013/01/10 17:19:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.44 2014/05/24 12:10:32 hkenken Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -1229,8 +1229,10 @@
DPRINTF(1,("%s: writing cmd: blksize=%d blkcnt=%d mode=%04x cmd=%04x\n",
HDEVNAME(hp), blksize, blkcount, mode, command));
- blksize |= (MAX(0, PAGE_SHIFT - 12) & SDHC_DMA_BOUNDARY_MASK) <<
- SDHC_DMA_BOUNDARY_SHIFT; /* PAGE_SIZE DMA boundary */
+ if (!ISSET(hp->sc->sc_flags, SDHC_FLAG_ENHANCED)) {
+ blksize |= (MAX(0, PAGE_SHIFT - 12) & SDHC_DMA_BOUNDARY_MASK) <<
+ SDHC_DMA_BOUNDARY_SHIFT; /* PAGE_SIZE DMA boundary */
+ }
mutex_enter(&hp->host_mtx);
Home |
Main Index |
Thread Index |
Old Index