Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc Please more delay, if timeout in sdhc_wait_int...
details: https://anonhg.NetBSD.org/src/rev/ff4c2d1921b2
branches: trunk
changeset: 346245:ff4c2d1921b2
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sun Jul 03 11:55:27 2016 +0000
description:
Please more delay, if timeout in sdhc_wait_intr().
diffstat:
sys/dev/sdmmc/sdhc.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r b4037a5f56cd -r ff4c2d1921b2 sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c Sun Jul 03 11:42:50 2016 +0000
+++ b/sys/dev/sdmmc/sdhc.c Sun Jul 03 11:55:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhc.c,v 1.93 2015/12/31 11:53:19 ryo Exp $ */
+/* $NetBSD: sdhc.c,v 1.94 2016/07/03 11:55:27 kiyohara 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.93 2015/12/31 11:53:19 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.94 2016/07/03 11:55:27 kiyohara Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -1532,6 +1532,7 @@
probing = (cmd->c_flags & SCF_TOUT_OK) != 0;
if (!sdhc_wait_intr(hp, SDHC_COMMAND_COMPLETE, SDHC_COMMAND_TIMEOUT, probing)) {
DPRINTF(1,("%s: timeout for command\n", __func__));
+ sdmmc_delay(50);
cmd->c_error = ETIMEDOUT;
goto out;
}
Home |
Main Index |
Thread Index |
Old Index