Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Reduce 10 second timeouts to 2 seconds.



details:   https://anonhg.NetBSD.org/src/rev/76f287456550
branches:  trunk
changeset: 991206:76f287456550
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jul 02 12:47:19 2018 +0000

description:
Reduce 10 second timeouts to 2 seconds.

diffstat:

 sys/dev/ic/dwc_mmc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 882e4c463840 -r 76f287456550 sys/dev/ic/dwc_mmc.c
--- a/sys/dev/ic/dwc_mmc.c      Mon Jul 02 12:18:32 2018 +0000
+++ b/sys/dev/ic/dwc_mmc.c      Mon Jul 02 12:47:19 2018 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
                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 @@
 {
        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,



Home | Main Index | Thread Index | Old Index