qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PULL 25/32] sdcard: handle CMD54 (SDIO)


From: Peter Maydell
Subject: [Qemu-devel] [PULL 25/32] sdcard: handle CMD54 (SDIO)
Date: Thu, 22 Feb 2018 15:23:00 +0000

From: Philippe Mathieu-Daudé <address@hidden>

Linux uses it to poll the bus before polling for a card.

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
---
 hw/sd/sd.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hw/sd/sd.c b/hw/sd/sd.c
index cc5caaf4f0..63da05eaef 100644
--- a/hw/sd/sd.c
+++ b/hw/sd/sd.c
@@ -1371,9 +1371,8 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
         }
         break;
 
-    case 52:
-    case 53:
-        /* CMD52, CMD53: reserved for SDIO cards
+    case 52 ... 54:
+        /* CMD52, CMD53, CMD54: reserved for SDIO cards
          * (see the SDIO Simplified Specification V2.0)
          * Handle as illegal command but do not complain
          * on stderr, as some OSes may use these in their
-- 
2.16.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]