Skip to content

Commit 60b71f6

Browse files
saurabh-sengarstorulf
authored andcommitted
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 Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 2066fd2 commit 60b71f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mmc/host/of_mmc_spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ static int of_mmc_spi_init(struct device *dev,
5555
{
5656
struct of_mmc_spi *oms = to_of_mmc_spi(dev);
5757

58-
return request_threaded_irq(oms->detect_irq, NULL, irqhandler, 0,
59-
dev_name(dev), mmc);
58+
return request_threaded_irq(oms->detect_irq, NULL, irqhandler,
59+
IRQF_ONESHOT, dev_name(dev), mmc);
6060
}
6161

6262
static void of_mmc_spi_exit(struct device *dev, void *mmc)

0 commit comments

Comments
 (0)