Skip to content

Commit

Permalink
hw/sd: sd: Fix CMD30 response type
Browse files Browse the repository at this point in the history
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: a1bb27b ("SD card emulation initial implementation")
Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
  • Loading branch information
lbmeng authored and philmd committed Feb 19, 2021
1 parent 245c051 commit 6969497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/sd/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6969497

Please sign in to comment.