mmc: of_mmc_spi: Add IRQF_ONESHOT to interrupt flags
authorsaurabh <saurabh.truth@gmail.com>
Wed, 25 Nov 2015 18:26:24 +0000 (23:56 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:17 +0000 (11:32 +0100)
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

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/of_mmc_spi.c

index 6e218fb1a669428ea6d2b5ddc2728f7d2f080e33..660170cd04d9f51c7253d18272f1113ca1e1b89b 100644 (file)
@@ -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)