diff options
author | Bin Meng | 2021-02-16 16:02:20 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé | 2021-02-20 00:17:09 +0100 |
commit | 69694973a8ae7381128c17e72ebf55fd592640f5 (patch) | |
tree | e32349e3a4a6dd1ad98d654ea8b95240732f44be /hw/sd/sd.c | |
parent | hw/sd: sd: Only SDSC cards support CMD28/29/30 (diff) | |
download | qemu-69694973a8ae7381128c17e72ebf55fd592640f5.tar.gz qemu-69694973a8ae7381128c17e72ebf55fd592640f5.tar.xz qemu-69694973a8ae7381128c17e72ebf55fd592640f5.zip |
hw/sd: sd: Fix CMD30 response type
Per the "Physical Layer Specification Version 8.00", table 4-26
(SD mode) and table 7-3 (SPI mode) command descriptions, CMD30
response type is R1, not R1b.
Fixes: a1bb27b1e98a ("SD card emulation initial implementation")
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210216150225.27996-4-bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/sd/sd.c')
-rw-r--r-- | hw/sd/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sd/sd.c b/hw/sd/sd.c index dd1ce0bdae..47ac0c51a8 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1340,7 +1340,7 @@ static sd_rsp_type_t sd_normal_command(SDState *sd, SDRequest req) *(uint32_t *) sd->data = sd_wpbits(sd, req.arg); sd->data_start = addr; sd->data_offset = 0; - return sd_r1b; + return sd_r1; default: break; |