Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc ignore timeouts for APP_CMD prefix as for the ...



details:   https://anonhg.NetBSD.org/src/rev/e68d6642d124
branches:  trunk
changeset: 342438:e68d6642d124
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Tue Dec 22 09:55:38 2015 +0000

description:
ignore timeouts for APP_CMD prefix as for the application command itself.

diffstat:

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

diffs (27 lines):

diff -r 51a04877f0f1 -r e68d6642d124 sys/dev/sdmmc/sdmmc.c
--- a/sys/dev/sdmmc/sdmmc.c     Tue Dec 22 08:26:16 2015 +0000
+++ b/sys/dev/sdmmc/sdmmc.c     Tue Dec 22 09:55:38 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdmmc.c,v 1.32 2015/11/29 23:38:47 jmcneill Exp $      */
+/*     $NetBSD: sdmmc.c,v 1.33 2015/12/22 09:55:38 mlelstv Exp $       */
 /*     $OpenBSD: sdmmc.c,v 1.18 2009/01/09 10:58:38 jsg Exp $  */
 
 /*
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdmmc.c,v 1.32 2015/11/29 23:38:47 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc.c,v 1.33 2015/12/22 09:55:38 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -798,7 +798,7 @@
        memset(&acmd, 0, sizeof(acmd));
        acmd.c_opcode = MMC_APP_CMD;
        acmd.c_arg = (sf != NULL) ? (sf->rca << 16) : 0;
-       acmd.c_flags = SCF_CMD_AC | SCF_RSP_R1 | SCF_RSP_SPI_R1;
+       acmd.c_flags = SCF_CMD_AC | SCF_RSP_R1 | SCF_RSP_SPI_R1 | (cmd->c_flags & SCF_TOUT_OK);
 
        error = sdmmc_mmc_command(sc, &acmd);
        if (error == 0) {



Home | Main Index | Thread Index | Old Index