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

Linus Walleij linus.walleij at linaro.org
Wed Oct 13 16:16:42 PDT 2021


On Fri, Oct 8, 2021 at 2:25 PM Fabien Dessenne
<fabien.dessenne at foss.st.com> 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 at foss.st.com>

Patch applied for fixes.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list