[RESEND PATCH 0/2] Add pinctrl_pm_select_init_state helper function
Linus Walleij
linus.walleij at linaro.org
Wed Jul 23 04:32:52 PDT 2025
On Thu, Jul 17, 2025 at 8:33 AM Christian Bruel
<christian.bruel at foss.st.com> wrote:
> We have the helper functions pinctrl_pm_select_default_state and
> pinctrl_pm_select_sleep_state.
> This patch adds the missing pinctrl_pm_select_init_state function.
>
> The STM32MP2 needs to set the pinctrl to an initial state during
> pm_resume, just like in probe. To achieve this, the function
> pinctrl_pm_select_init_state is added.
>
> This allows a driver to balance pinctrl_pm_select_sleep_state()
> with pinctrl_pm_select_default_state() and
> pinctrl_pm_select_init_state() in pm_runtime_suspend and pm_runtime_resume.
>
> Christian Bruel (2):
> pinctrl: Add pinctrl_pm_select_init_state helper function
> PCI: stm32: use pinctrl_pm_select_init_state() in
> stm32_pcie_resume_noirq()
If Bjorn Helgaas is OK with it I can apply this to the pinctrl tree.
Otherwise I can also just apply patch 1/2, but that doesn't solve
any problem.
What should I do?
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list