]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: mmc_spi: generate R1 response for different mmc SPI commands
authorPragnesh Patel <pragnesh.patel@sifive.com>
Mon, 29 Jun 2020 09:47:25 +0000 (15:17 +0530)
committerPeng Fan <peng.fan@nxp.com>
Tue, 14 Jul 2020 08:19:42 +0000 (16:19 +0800)
R1 response is 1 byte long for mmc SPI commands as per the updated
physical layer specification version 7.10.

So correct the resp and resp_size for existing commands

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

index 86cc93215130547dc282955e6cde87d6a23c4b92..ddfebb6ed69d8ba0be17cd4d27184ec77142d72c 100644 (file)
@@ -305,6 +305,8 @@ static int dm_mmc_spi_request(struct udevice *dev, struct mmc_cmd *cmd,
        case MMC_CMD_READ_MULTIPLE_BLOCK:
        case MMC_CMD_WRITE_SINGLE_BLOCK:
        case MMC_CMD_WRITE_MULTIPLE_BLOCK:
+               resp = &resp8;
+               resp_size = sizeof(resp8);
                break;
        default:
                resp = &resp8;