[PATCH 4/6] mmc: mmc_spi: Read R2 response for send status command - CMD13

Bin Meng bmeng.cn at gmail.com
Wed Jul 8 07:21:58 CEST 2020


On Mon, Jun 29, 2020 at 5:48 PM Pragnesh Patel
<pragnesh.patel at sifive.com> wrote:
>
> 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 at sifive.com>
> ---
>  drivers/mmc/mmc_spi.c | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
>

Reviewed-by: Bin Meng <bin.meng at windriver.com>
Tested-by: Bin Meng <bin.meng at windriver.com>


More information about the U-Boot mailing list