Re: [PATCH] pinctrl: stm32: use valid pin identifier in stm32_pinctrl_resume()

From: Linus Walleij
Date: Wed Oct 13 2021 - 19:16:58 EST


On Fri, Oct 8, 2021 at 2:25 PM Fabien Dessenne
<fabien.dessenne@xxxxxxxxxxx> wrote:

> When resuming from low power, the driver attempts to restore the
> configuration of some pins. This is done by a call to:
> stm32_pinctrl_restore_gpio_regs(struct stm32_pinctrl *pctl, u32 pin)
> where 'pin' must be a valid pin value (i.e. matching some 'groups->pin').
> Fix the current implementation which uses some wrong 'pin' value.
>
> Fixes: e2f3cf18c3e2 ("pinctrl: stm32: add suspend/resume management")
> Signed-off-by: Fabien Dessenne <fabien.dessenne@xxxxxxxxxxx>

Patch applied for fixes.

Yours,
Linus Walleij