aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2018-02-22 15:12:53 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-02-22 15:12:53 +0000
commit49fb7381b2c86e78ca117451f5602f2299fb726a (patch)
tree5923cb046aa4985333d2c0efad3ce0165c30255e
parentda26e3f360c64478e15aa27c79a0acf833eaa436 (diff)
sdcard: handle CMD54 (SDIO)
Linux uses it to poll the bus before polling for a card. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Message-id: 20180215221325.7611-10-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/sd/sd.c5
1 files 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