Re: [PATCH] gpio: pca953x: restore cache_only state on resume failure

Linus Walleij <[email protected]>
Newsgroups org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel
Message-ID <CAD++jLnTn0-JRRgdwQ9JrjGPNh=xYCm383EpJ2KRHVTa62bsgQ@mail.gmail.com>
On Fri, Jul 24, 2026 at 10:18 AM <[email protected]> wrote:

> From: bui duc phuc <[email protected]>
>
> 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 <[email protected]>

Reviewed-by: Linus Walleij <[email protected]>

Yours,
Linus Walleij
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.