Skip to contentSkip to conversation

mmc: of_mmc_spi: Add IRQF_ONESHOT to interrupt flags

PATCH Applied Saurabh Sengar 2 participants 2 messages Nov 25, 2015 – Dec 4, 2015 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: of_mmc_spi: Add IRQF_ONESHOT to interrupt flags

If no primary handler is specified for threaded_irq then a default one is assigned which always returns IRQ_WAKE_THREAD. This handler requires the IRQF_ONESHOT, because the source of interrupt is not disabled

---
 drivers/mmc/host/of_mmc_spi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/of_mmc_spi.c +2 -2
index 6e218fb..660170c 100644
@@ -55,8 +55,8 @@ static int of_mmc_spi_init(struct device *dev,
 {
 	struct of_mmc_spi *oms = to_of_mmc_spi(dev);
 
-	return request_threaded_irq(oms->detect_irq, NULL, irqhandler, 0,
-				    dev_name(dev), mmc);
+	return request_threaded_irq(oms->detect_irq, NULL, irqhandler,
+					IRQF_ONESHOT, dev_name(dev), mmc);
 }
 
 static void of_mmc_spi_exit(struct device *dev, void *mmc)
Signature · 1 line
1.9.1
Applied
#1 lore raw
Quoted 6 lines · Saurabh Sengar

If no primary handler is specified for threaded_irq then a default one is assigned which always returns IRQ_WAKE_THREAD. This handler requires the IRQF_ONESHOT, because the source of interrupt is not disabled

Thanks, applied for next!

Kind regards
Uffe

Quoted 22 lines
---
 drivers/mmc/host/of_mmc_spi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/of_mmc_spi.c +2 -3
index 6e218fb..660170c 100644
@@ -55,8 +55,8 @@ static int of_mmc_spi_init(struct device *dev,
 {
        struct of_mmc_spi *oms = to_of_mmc_spi(dev);
 
-       return request_threaded_irq(oms->detect_irq, NULL, irqhandler, 0,
-                                   dev_name(dev), mmc);
+       return request_threaded_irq(oms->detect_irq, NULL, irqhandler,
+                                       IRQF_ONESHOT, dev_name(dev), mmc);
 }
 
 static void of_mmc_spi_exit(struct device *dev, void *mmc)
--

1.9.1