]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mailbox: bcm-ferxrm-mailbox: Use default primary handler
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 28 Jan 2026 09:55:24 +0000 (10:55 +0100)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 2 Feb 2026 00:48:20 +0000 (18:48 -0600)
commitfa84883d44422208b45869a67c0265234fdce1f0
tree79a41bcf150c6f272f80360e910a3c6bb765c660
parent60436eb0d618717c7f51eae2e4e9245abeae349c
mailbox: bcm-ferxrm-mailbox: Use default primary handler

request_threaded_irq() is invoked with a primary and a secondary handler
and no flags are passed. The primary handler is the same as
irq_default_primary_handler() so there is no need to have an identical
copy.
The lack of the IRQF_ONESHOT can be dangerous because the interrupt
source is not masked while the threaded handler is active. This means,
especially on LEVEL typed interrupt lines, the interrupt can fire again
before the threaded handler had a chance to run.

Use the default primary interrupt handler by specifying NULL and set
IRQF_ONESHOT so the interrupt source is masked until the secondary
handler is done.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/bcm-flexrm-mailbox.c