Skip to content

Commit

Permalink
mmc: litex_mmc: ensure host->irq == 0 if polling
Browse files Browse the repository at this point in the history
Ensure the flag is explicitly set to 0 if we determine that polling is
needed during driver probe, to cover all possible cases.

Fixes: 92e0991 ("mmc: Add driver for LiteX's LiteSDCard interface")
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Link: https://lore.kernel.org/r/20221107155516.2535912-1-gsomlo@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Gabriel Somlo authored and Ulf Hansson committed Dec 7, 2022
1 parent 29276d5 commit 5c1a2b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/host/litex_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ static int litex_mmc_irq_init(struct platform_device *pdev,

use_polling:
host->mmc->caps |= MMC_CAP_NEEDS_POLL;
host->irq = 0;
return 0;
}

Expand Down

0 comments on commit 5c1a2b7

Please sign in to comment.