]> git.proxmox.com Git - mirror_qemu.git/commit
hw/sd: ssi-sd: Support multiple block write
authorBin Meng <bin.meng@windriver.com>
Thu, 28 Jan 2021 06:30:32 +0000 (14:30 +0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 19 Feb 2021 23:17:09 +0000 (00:17 +0100)
commitd56f3efa28043d17ca0c71752dbde81b25a042cb
tree161822e93e0aeab74d2d0d311b5705dd31bee7d4
parent5020e3cb769e90737bba2d54222a3a449eae7bc0
hw/sd: ssi-sd: Support multiple block write

For a multiple block write operation, each block begins with a multi
write start token. Unlike the SD mode that the multiple block write
ends when receiving a STOP_TRAN command (CMD12), a special stop tran
token is used to signal the card.

Emulating this by manually sending a CMD12 to the SD card core, to
bring it out of the receiving data state.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20210128063035.15674-7-bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/sd/ssi-sd.c