hw/sd: ssi-sd: Handle the rest commands with R1b response type
commit17674695aba3d3fdeec4aeed7920fb760956c807
authorBin Meng <bin.meng@windriver.com>
Thu, 28 Jan 2021 06:30:35 +0000 (28 14:30 +0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 19 Feb 2021 23:17:09 +0000 (20 00:17 +0100)
tree43857f6546f4dfb993d193d351c6d2179037e3de
parent5b45a3666ef77ec65f49b0b074a28f1ef460b9c5
hw/sd: ssi-sd: Handle the rest commands with R1b response type

Besides CMD12, the following command's reponse type is R1b:

- SET_WRITE_PROT (CMD28)
- CLR_WRITE_PROT (CMD29)
- ERASE (CMD38)

Reuse the same s->stopping to indicate a R1b reponse is needed.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210128063035.15674-10-bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/sd/ssi-sd.c