mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-08 16:07:39 -06:00
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: a1bb27b1e9
("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>
This commit is contained in:
parent
245c05134f
commit
69694973a8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
*(uint32_t *) sd->data = sd_wpbits(sd, req.arg);
|
||||||
sd->data_start = addr;
|
sd->data_start = addr;
|
||||||
sd->data_offset = 0;
|
sd->data_offset = 0;
|
||||||
return sd_r1b;
|
return sd_r1;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue