Skip to content

Commit c37927a

Browse files
rafaeljwKAGA-KOKO
authored andcommitted
genirq: Set IRQF_COND_ONESHOT in request_irq()
The callers of request_irq() don't care about IRQF_ONESHOT because they don't provide threaded handlers, but if they happen to share the IRQ with the ACPI SCI, which has a threaded handler and sets IRQF_ONESHOT, request_irq() will fail for them due to a flags mismatch. Address this by making request_irq() add IRQF_COND_ONESHOT to the flags passed to request_threaded_irq() for all of its callers. Fixes: 7a36b90 ("ACPI: OSL: Use a threaded interrupt handler for SCI") Reported-by: Stefan Seyfried <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Stefan Seyfried <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Closes: https://lore.kernel.org/lkml/[email protected]
1 parent 33b1c47 commit c37927a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/interrupt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static inline int __must_check
168168
request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
169169
const char *name, void *dev)
170170
{
171-
return request_threaded_irq(irq, handler, NULL, flags, name, dev);
171+
return request_threaded_irq(irq, handler, NULL, flags | IRQF_COND_ONESHOT, name, dev);
172172
}
173173

174174
extern int __must_check

0 commit comments

Comments
 (0)