Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc fix timeout path in soft reset when building w...



details:   https://anonhg.NetBSD.org/src/rev/e6fb3fa6691a
branches:  trunk
changeset: 341379:e6fb3fa6691a
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Tue Nov 03 06:49:39 2015 +0000

description:
fix timeout path in soft reset when building with SDHC_DEBUG

diffstat:

 sys/dev/sdmmc/sdhc.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 9106fbf3d9b0 -r e6fb3fa6691a sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c      Tue Nov 03 06:00:50 2015 +0000
+++ b/sys/dev/sdmmc/sdhc.c      Tue Nov 03 06:49:39 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc.c,v 1.89 2015/11/02 22:18:45 jmcneill Exp $       */
+/*     $NetBSD: sdhc.c,v 1.90 2015/11/03 06:49:39 mlelstv 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.89 2015/11/02 22:18:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.90 2015/11/03 06:49:39 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -2043,9 +2043,10 @@
                        /* Short delay because I worry we may miss it...  */
                        sdmmc_delay(1);
                }
-               if (timo == 0)
+               if (timo == 0) {
                        DPRINTF(1,("%s: timeout for reset on\n", __func__));
                        return ETIMEDOUT;
+               }
        }
 
        /*



Home | Main Index | Thread Index | Old Index