Skip to content

Commit e53b868

Browse files
xdarklightstorulf
authored andcommitted
mmc: meson-mx-sdio: Set MMC_CAP_WAIT_WHILE_BUSY
The Meson SDIO controller uses the DAT0 lane for hardware busy detection. Set MMC_CAP_WAIT_WHILE_BUSY accordingly. This fixes the following error observed with Linux 5.7 (pre-rc-1): mmc1: Card stuck being busy! __mmc_poll_for_busy blk_update_request: I/O error, dev mmcblk1, sector 17111080 op 0x3:(DISCARD) flags 0x0 phys_seg 1 prio class 0 Fixes: ed80a13 ("mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoCs") Signed-off-by: Martin Blumenstingl <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 44aebc1 commit e53b868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/meson-mx-sdio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ static int meson_mx_mmc_add_host(struct meson_mx_mmc_host *host)
570570
mmc->f_max = clk_round_rate(host->cfg_div_clk,
571571
clk_get_rate(host->parent_clk));
572572

573-
mmc->caps |= MMC_CAP_ERASE | MMC_CAP_CMD23;
573+
mmc->caps |= MMC_CAP_ERASE | MMC_CAP_CMD23 | MMC_CAP_WAIT_WHILE_BUSY;
574574
mmc->ops = &meson_mx_mmc_ops;
575575

576576
ret = mmc_of_parse(mmc);

0 commit comments

Comments
 (0)