Skip to contentSkip to conversation

mmc: litex_mmc: ensure `host->irq == 0` if polling

PATCH In review Gabriel Somlo 2 participants 2 messages Nov 7, 2022 – Nov 9, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/mmc/host/litex_mmc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/litex_mmc.c +1 -0
index 6ba0d63b8c07..39c6707fdfdb 100644
@@ -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;
 }
 
Signature · 1 line
2.37.3
#1 lore raw
Quoted 6 lines · Gabriel Somlo

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")

Applied for next, thanks!

Kind regards
Uffe

Quoted 19 lines
---
 drivers/mmc/host/litex_mmc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/litex_mmc.c +1 -1
index 6ba0d63b8c07..39c6707fdfdb 100644
@@ -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;
 }
 
--

2.37.3