Skip to content

Commit 8a6a9e7

Browse files
Linus WalleijUlf Hansson
authored andcommitted
mmc: mmci: Stash status while waiting for busy
Some interesting flags can arrive while we are waiting for the first busy detect IRQ so OR then onto the stashed flags so they are not missed. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230405-pl180-busydetect-fix-v7-3-69a7164f2a61@linaro.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 479d8e6 commit 8a6a9e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mmc/host/mmci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ static bool ux500_busy_complete(struct mmci_host *host, u32 status, u32 err_msk)
713713
*/
714714
if (host->busy_status &&
715715
(status & host->variant->busy_detect_flag)) {
716+
host->busy_status |= status & (MCI_CMDSENT | MCI_CMDRESPEND);
716717
writel(host->variant->busy_detect_mask, base + MMCICLEAR);
717718
return false;
718719
}

0 commit comments

Comments
 (0)