]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/sd/sdcard: Fill SPI response bits in card code
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 29 Jul 2025 12:04:43 +0000 (14:04 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 5 Aug 2025 14:05:56 +0000 (16:05 +0200)
commit1585ab9f1baf6f0b471483455a74ea7abe9add0f
tree5031bc555725411a82d11f3225a65c54becafdcc
parentb82e7a2a1da5638c4c51fcf5a254b65762080b85
hw/sd/sdcard: Fill SPI response bits in card code

ssi-sd.c contains the SPI link layer adaptation,
while sd.c contains all the SD card internal details.

We already handle the response values in sd.c, but
missed the SPI case. Complete them (fill R1, prepend
R1 in R3/R7 and always return something in SPI mode).
Remove all the duplication in ssi-sd.c.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250804133406.17456-5-philmd@linaro.org>
hw/sd/sd.c
hw/sd/ssi-sd.c