# Re: \[PATCH\] pinctrl: stm32: use valid pin identifier in stm32\_pinctrl\_resume()

- From: Linus Walleij \<hidden\>
- Date: 2021-10-13 23:16:57 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/10/1541195
- Thread: https://ratatoskr.run/linux-gpio/2021/10/1535387/t.md

```text
On Fri, Oct 8, 2021 at 2:25 PM Fabien Dessenne
[ref] 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@foss.st.com>

Patch applied for fixes.

Yours,
Linus Walleij

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
