Module Name: src
Committed By: jmcneill
Date: Mon Jul 2 12:47:19 UTC 2018
Modified Files:
src/sys/dev/ic: dwc_mmc.c
Log Message:
Reduce 10 second timeouts to 2 seconds.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/ic/dwc_mmc.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/dev/ic/dwc_mmc.c
diff -u src/sys/dev/ic/dwc_mmc.c:1.13 src/sys/dev/ic/dwc_mmc.c:1.14
--- src/sys/dev/ic/dwc_mmc.c:1.13 Tue Jun 19 22:44:33 2018
+++ src/sys/dev/ic/dwc_mmc.c Mon Jul 2 12:47:19 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_mmc.c,v 1.13 2018/06/19 22:44:33 jmcneill Exp $ */
+/* $NetBSD: dwc_mmc.c,v 1.14 2018/07/02 12:47:19 jmcneill Exp $ */
/*-
* Copyright (c) 2014-2017 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_mmc.c,v 1.13 2018/06/19 22:44:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_mmc.c,v 1.14 2018/07/02 12:47:19 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -316,7 +316,7 @@ dwc_mmc_update_clock(struct dwc_mmc_soft
cmd |= DWC_MMC_CMD_USE_HOLD_REG;
MMC_WRITE(sc, DWC_MMC_ARG, 0);
MMC_WRITE(sc, DWC_MMC_CMD, cmd);
- retry = 0xfffff;
+ retry = 200000;
while (--retry > 0) {
if (!(MMC_READ(sc, DWC_MMC_CMD) & DWC_MMC_CMD_START))
break;
@@ -556,7 +556,7 @@ dwc_mmc_exec_command(sdmmc_chipset_handl
{
struct dwc_mmc_softc *sc = sch;
uint32_t cmdval = DWC_MMC_CMD_START;
- int retry = 0xfffff;
+ int retry = 200000;
#ifdef DWC_MMC_DEBUG
aprint_normal_dev(sc->sc_dev,