Re: [PATCH] gpio: pca953x: Preserve wakeup accounting on parent IRQ failure

From: Bartosz Golaszewski

Date: Tue Oct 20 2026 - 09:32:43 EST



On Sun, 18 Oct 2026 21:40:42 +0530, Sahaj Chaudhari wrote:
> pca953x_irq_set_wake() updates wakeup_path before asking the parent
> IRQ controller to change its wake state. If irq_set_irq_wake() fails,
> the IRQ core rolls back its wake state but the driver's counter remains
> changed.
>
> A failed enable can therefore leave the expander marked as part of the
> wakeup path when no child IRQ has successfully enabled wakeup. A failed
> disable can make the driver stop retaining power even though wakeup is
> still enabled. The suspend and resume paths use this counter to decide
> whether to disable or enable the regulator.
>
> [...]

Applied, thanks!

[1/1] gpio: pca953x: Preserve wakeup accounting on parent IRQ failure
https://git.kernel.org/brgl/c/a38bf551726a21c9bcc001b02164f30378b64b64

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>