]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: mmc_spi: Generate R1 response for erase block start and end address
authorPragnesh Patel <pragnesh.patel@sifive.com>
Mon, 29 Jun 2020 09:47:28 +0000 (15:17 +0530)
committerPeng Fan <peng.fan@nxp.com>
Tue, 14 Jul 2020 08:19:46 +0000 (16:19 +0800)
Erase block start address (CMD32) and erase block end address (CMD33)
command will generate R1 response for mmc SPI mode.

R1 response is 1 byte long for mmc SPI, so assign 1 byte as a response
for this 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 ee56de36ec2406fd5067eb9d14cb01a31227afd3..96a41076dc2675b1c5141be4d0ed034eb550a751 100644 (file)
@@ -309,6 +309,8 @@ static int dm_mmc_spi_request(struct udevice *dev, struct mmc_cmd *cmd,
        case MMC_CMD_WRITE_SINGLE_BLOCK:
        case MMC_CMD_WRITE_MULTIPLE_BLOCK:
        case MMC_CMD_APP_CMD:
+       case SD_CMD_ERASE_WR_BLK_START:
+       case SD_CMD_ERASE_WR_BLK_END:
                resp = &resp8;
                resp_size = sizeof(resp8);
                break;