mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-19 08:11:52 +00:00
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>
This commit is contained in:
parent
2066fd285e
commit
60b71f6077
@ -55,8 +55,8 @@ static int of_mmc_spi_init(struct device *dev,
|
|||||||
{
|
{
|
||||||
struct of_mmc_spi *oms = to_of_mmc_spi(dev);
|
struct of_mmc_spi *oms = to_of_mmc_spi(dev);
|
||||||
|
|
||||||
return request_threaded_irq(oms->detect_irq, NULL, irqhandler, 0,
|
return request_threaded_irq(oms->detect_irq, NULL, irqhandler,
|
||||||
dev_name(dev), mmc);
|
IRQF_ONESHOT, dev_name(dev), mmc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void of_mmc_spi_exit(struct device *dev, void *mmc)
|
static void of_mmc_spi_exit(struct device *dev, void *mmc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user