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

Linus Walleij linusw at kernel.org
Tue Jan 27 14:16:38 PST 2026


On Tue, Jan 27, 2026 at 10:47 PM Florian Fainelli
<florian.fainelli at broadcom.com> wrote:

> From: Doug Berger <opendmb at 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 at gmail.com>
> Co-developed-by: Florian Fainelli <florian.fainelli at broadcom.com>
> Signed-off-by: Florian Fainelli <florian.fainelli at broadcom.com>

Reviewed-by: Linus Walleij <linusw at kernel.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list