Re: [PATCH] gpio: ml-ioh: share the register lock across channels

From: Linus Walleij

Date: Fri Aug 07 2026 - 04:35:04 EST


On Tue, Aug 4, 2026 at 12:00 PM Junjie Cao <junjie.cao@xxxxxxxxx> wrote:

> Suspend and resume hold channel 0's lock while saving and restoring
> registers for all eight channels. Code paths using the other seven locks
> can therefore run concurrently with PM.
>
> Use one controller-wide lock shared by all channels.
>
> Fixes: b490fa0bf86e ("gpio-ml-ioh: Fix suspend/resume issue")
> Reported-by: sashiko-bot <sashiko-bot@xxxxxxxxxx>
> Link: https://lore.kernel.org/r/20260731033956.EE6F61F000E9@xxxxxxxxxxxxxxx
> Signed-off-by: Junjie Cao <junjie.cao@xxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij