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 Revert "use len=0 for max length transfer...
details: https://anonhg.NetBSD.org/src/rev/ffa048464ed5
branches: trunk
changeset: 319833:ffa048464ed5
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Jun 13 11:17:02 2018 +0000
description:
Revert "use len=0 for max length transfers" part of previous commit.
PR: port-evbarm/53359
diffstat:
sys/arch/arm/sunxi/sunxi_mmc.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 6e8898e57188 -r ffa048464ed5 sys/arch/arm/sunxi/sunxi_mmc.c
--- a/sys/arch/arm/sunxi/sunxi_mmc.c Wed Jun 13 09:38:32 2018 +0000
+++ b/sys/arch/arm/sunxi/sunxi_mmc.c Wed Jun 13 11:17:02 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_mmc.c,v 1.25 2018/06/07 00:39:27 jmcneill Exp $ */
+/* $NetBSD: sunxi_mmc.c,v 1.26 2018/06/13 11:17:02 jmcneill 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.25 2018/06/07 00:39:27 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.26 2018/06/13 11:17:02 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -970,8 +970,7 @@
if (desc == sc->sc_idma_ndesc)
break;
len = min(sc->sc_config->idma_xferlen, resid);
- dma[desc].dma_buf_size =
- htole32(len == sc->sc_config->idma_xferlen ? 0 : len);
+ dma[desc].dma_buf_size = htole32(len);
dma[desc].dma_buf_addr = htole32(paddr + off);
dma[desc].dma_config = htole32(SUNXI_MMC_IDMA_CONFIG_CH |
SUNXI_MMC_IDMA_CONFIG_OWN);
Home |
Main Index |
Thread Index |
Old Index