Bluetooth: btmrvl: Use IRQF_NO_AUTOEN flag in request_irq()
[ Upstream commit 7b1ab460592ca818e7b52f27cd3ec86af79220d1 ]
disable_irq() after request_irq() still has a time gap in which
interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will
disable IRQ auto-enable when request IRQ.
Fixes: bb7f4f0bce ("btmrvl: add platform specific wakeup interrupt support")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8f390b9eed
commit
efd9ff49d9
1 changed files with 1 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ static int btmrvl_sdio_probe_of(struct device *dev,
|
||||||
} else {
|
} else {
|
||||||
ret = devm_request_irq(dev, cfg->irq_bt,
|
ret = devm_request_irq(dev, cfg->irq_bt,
|
||||||
btmrvl_wake_irq_bt,
|
btmrvl_wake_irq_bt,
|
||||||
0, "bt_wake", card);
|
IRQF_NO_AUTOEN, "bt_wake", card);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev,
|
dev_err(dev,
|
||||||
"Failed to request irq_bt %d (%d)\n",
|
"Failed to request irq_bt %d (%d)\n",
|
||||||
|
|
@ -114,7 +114,6 @@ static int btmrvl_sdio_probe_of(struct device *dev,
|
||||||
|
|
||||||
/* Configure wakeup (enabled by default) */
|
/* Configure wakeup (enabled by default) */
|
||||||
device_init_wakeup(dev, true);
|
device_init_wakeup(dev, true);
|
||||||
disable_irq(cfg->irq_bt);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue