diff options
author | Gabriel Somlo <gsomlo@gmail.com> | 2022-11-07 10:55:16 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2022-12-07 13:22:35 +0100 |
commit | 5c1a2b77cd1b59112cf22b3e338f7e416797ad32 (patch) | |
tree | 48122cc8e94c3102be3b5f46a512ad426c3193d0 /drivers/mmc | |
parent | 29276d56f6ed138db0f38cd31aedc0b725c8c76c (diff) | |
download | lwn-5c1a2b77cd1b59112cf22b3e338f7e416797ad32.tar.gz lwn-5c1a2b77cd1b59112cf22b3e338f7e416797ad32.zip |
mmc: litex_mmc: ensure `host->irq == 0` if polling
Ensure the flag is explicitly set to 0 if we determine that polling is
needed during driver probe, to cover all possible cases.
Fixes: 92e099104729 ("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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/litex_mmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/litex_mmc.c b/drivers/mmc/host/litex_mmc.c index 6ba0d63b8c07..39c6707fdfdb 100644 --- a/drivers/mmc/host/litex_mmc.c +++ b/drivers/mmc/host/litex_mmc.c @@ -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; } |