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/657a57d0d01a
branches: trunk
changeset: 811521:657a57d0d01a
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 73e44cf04387 -r 657a57d0d01a 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