Thread (10 messages) 10 messages, 4 authors, 2026-01-29

Re: [PATCH v2 2/3] gpio: brcmstb: implement irq_mask_ack

From: Linus Walleij <linusw@kernel.org>
Date: 2026-01-27 22:16:50
Also in: linux-gpio, lkml

On Tue, Jan 27, 2026 at 10:47 PM Florian Fainelli
[off-list ref] wrote:
From: Doug Berger <opendmb@gmail.com>

The irq_mask_ack operation is slightly more efficient than doing
irq_mask and irq_ack separately.

More importantly for this driver it bypasses the check of
irqd_irq_masked ensuring a previously masked but still active
interrupt gets remasked if unmasked at the hardware level. This
allows the driver to more efficiently unmask the wake capable
interrupts when quiescing without needing to enable the irqs
individually to clear the irqd_irq_masked state.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Co-developed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help