Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc Also wait for DAT when sending RSP_BSY command...



details:   https://anonhg.NetBSD.org/src/rev/d4e1b9afc71d
branches:  trunk
changeset: 341380:d4e1b9afc71d
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Tue Nov 03 07:59:29 2015 +0000

description:
Also wait for DAT when sending RSP_BSY commands. Fixes PR 50388.

diffstat:

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

diffs (27 lines):

diff -r e6fb3fa6691a -r d4e1b9afc71d sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c      Tue Nov 03 06:49:39 2015 +0000
+++ b/sys/dev/sdmmc/sdhc.c      Tue Nov 03 07:59:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc.c,v 1.90 2015/11/03 06:49:39 mlelstv Exp $        */
+/*     $NetBSD: sdhc.c,v 1.91 2015/11/03 07:59:29 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.90 2015/11/03 06:49:39 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.91 2015/11/03 07:59:29 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -1596,7 +1596,7 @@
 
        /* Wait until command and optionally data inhibit bits are clear. (1.5) */
        pmask = SDHC_CMD_INHIBIT_CMD;
-       if (cmd->c_flags & SCF_CMD_ADTC)
+       if (cmd->c_flags & (SCF_CMD_ADTC|SCF_RSP_BSY))
                pmask |= SDHC_CMD_INHIBIT_DAT;
        error = sdhc_wait_state(hp, pmask, 0);
        if (error) {



Home | Main Index | Thread Index | Old Index