Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/sunxi sunxi: mmc: increase max number of descri...
details: https://anonhg.NetBSD.org/src/rev/caf796df70f4
branches: trunk
changeset: 360616:caf796df70f4
user: ryo <ryo%NetBSD.org@localhost>
date: Mon Mar 19 08:57:57 2018 +0000
description:
sunxi: mmc: increase max number of descriptors available for DMA transfers
patch from jmcneill@
diffstat:
sys/arch/arm/sunxi/sunxi_mmc.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r dab52eb4d093 -r caf796df70f4 sys/arch/arm/sunxi/sunxi_mmc.c
--- a/sys/arch/arm/sunxi/sunxi_mmc.c Mon Mar 19 08:41:21 2018 +0000
+++ b/sys/arch/arm/sunxi/sunxi_mmc.c Mon Mar 19 08:57:57 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_mmc.c,v 1.20 2018/02/19 20:26:51 jmcneill Exp $ */
+/* $NetBSD: sunxi_mmc.c,v 1.21 2018/03/19 08:57:57 ryo Exp $ */
/*-
* Copyright (c) 2014-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_sunximmc.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.20 2018/02/19 20:26:51 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.21 2018/03/19 08:57:57 ryo Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -87,7 +87,7 @@
[SUNXI_MMC_TIMING_50M_DDR_8BIT] = { 72, 72 },
};
-#define SUNXI_MMC_NDESC 16
+#define SUNXI_MMC_NDESC 64
struct sunxi_mmc_softc;
@@ -954,8 +954,9 @@
}
if (desc == sc->sc_idma_ndesc) {
aprint_error_dev(sc->sc_dev,
- "not enough descriptors for %d byte transfer!\n",
- cmd->c_datalen);
+ "not enough descriptors for %d byte transfer! "
+ "there are %u segments with a max xfer length of %u\n",
+ cmd->c_datalen, map->dm_nsegs, sc->sc_config->idma_xferlen);
return EIO;
}
Home |
Main Index |
Thread Index |
Old Index