[PATCH v5 3/3] gpio: brcmstb: allow parent_irq to wake

Linus Walleij linusw at kernel.org
Sat Feb 7 13:47:01 PST 2026


On Wed, Feb 4, 2026 at 5:43 PM Florian Fainelli
<florian.fainelli at broadcom.com> wrote:

> From: Doug Berger <opendmb at gmail.com>
>
> The classic parent_wake_irq can only occur after the system has
> been placed into a hardware managed power management state. This
> prevents its use for waking from software managed suspend states
> like s2idle.
>
> By allowing the parent_irq to be enabled for wake enabled GPIO
> during suspend, these GPIO can now be used to wake from these
> states. The 'suspended' boolean is introduced to support wake
> event accounting.
>
> Signed-off-by: Doug Berger <opendmb at gmail.com>
> [florian: port changes after generic gpio chip conversion]
> Signed-off-by: Florian Fainelli <florian.fainelli at broadcom.com>

This looks correct as far as I can understand.
I wish all GPIO drivers has as elaborate wakeup handling...
I will look at this driver to see how it should be done properly.

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

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list