Re: [PATCH] gpio: pca953x: restore cache_only state on resume failure
From: Linus Walleij
Date: Sat Jul 25 2026 - 09:58:16 EST
On Fri, Jul 24, 2026 at 10:18 AM <phucduc.bui@xxxxxxxxx> wrote:
> From: bui duc phuc <phucduc.bui@xxxxxxxxx>
>
> When pca953x_restore_context() fails, cache_only is left disabled and
> the IRQ left enabled, even though register synchronization may not have
> completed successfully. Restore cache_only and disable the IRQ again on
> failure, matching the state set by pca953x_save_context().
>
> Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij