]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: mmc_spi: Read R2 response for send status command - CMD13
authorPragnesh Patel <pragnesh.patel@sifive.com>
Mon, 29 Jun 2020 09:47:27 +0000 (15:17 +0530)
committerPeng Fan <peng.fan@nxp.com>
Tue, 14 Jul 2020 08:19:44 +0000 (16:19 +0800)
commit70f176ae827823cb6fb7edccc8211c1f2f92b754
tree22e88d34fa44262308f0cbbe1b4dad0f171582b5
parent810bc13803027c63560504a3b910cf2ef3799194
mmc: mmc_spi: Read R2 response for send status command - CMD13

Send status command (CMD13) will send R1 response under SD mode
but R2 response under SPI mode.

R2 response is 2 bytes long, so read 2 bytes for mmc SPI mode

Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
drivers/mmc/mmc_spi.c