Patchwork [6/7] handle SD CMD5 without error messages

login
register
mail settings
Submitter riku.voipio@nokia.com
Date Dec. 3, 2009, 1:56 p.m.
Message ID <a576017ed3853e31f85d43508be8ed9ebc7f7714.1259836046.git.riku.voipio@nokia.com>
Download mbox | patch
Permalink /patch/40261/
State New
Headers show

Comments

riku.voipio@nokia.com - Dec. 3, 2009, 1:56 p.m.
From: Juha Riihimäki <juha.riihimaki@nokia.com>

From: Juha Riihimäki <juha.riihimaki@nokia.com>
Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
---
 hw/sd.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/sd.c b/hw/sd.c
index 7b345e7..cc2839d 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -669,6 +669,10 @@  static sd_rsp_type_t sd_normal_command(SDState *sd,
         }
         break;
 
+    case 5: /* CMD5: reserved for SDIO cards */
+        sd->card_status |= ILLEGAL_COMMAND;
+        return sd_r0;
+
     case 6:	/* CMD6:   SWITCH_FUNCTION */
         if (sd->spi)
             goto bad_cmd;