Skip to content

Commit 7b1ab46

Browse files
ruanjinjie-engVudentz
authored andcommitted
Bluetooth: btmrvl: Use IRQF_NO_AUTOEN flag in request_irq()
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: bb7f4f0 ("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>
1 parent 333b4fd commit 7b1ab46

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/bluetooth/btmrvl_sdio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int btmrvl_sdio_probe_of(struct device *dev,
9292
} else {
9393
ret = devm_request_irq(dev, cfg->irq_bt,
9494
btmrvl_wake_irq_bt,
95-
0, "bt_wake", card);
95+
IRQF_NO_AUTOEN, "bt_wake", card);
9696
if (ret) {
9797
dev_err(dev,
9898
"Failed to request irq_bt %d (%d)\n",
@@ -101,7 +101,6 @@ static int btmrvl_sdio_probe_of(struct device *dev,
101101

102102
/* Configure wakeup (enabled by default) */
103103
device_init_wakeup(dev, true);
104-
disable_irq(cfg->irq_bt);
105104
}
106105
}
107106

0 commit comments

Comments
 (0)