]> git.ipfire.org Git - thirdparty/linux.git/commit
pinctrl: Add pinctrl_pm_select_init_state helper function
authorChristian Bruel <christian.bruel@foss.st.com>
Wed, 20 Aug 2025 07:54:02 +0000 (09:54 +0200)
committerManivannan Sadhasivam <mani@kernel.org>
Wed, 27 Aug 2025 13:23:30 +0000 (18:53 +0530)
commit08383cd479f8212fafee2f557b58cfd48818bee0
treeeded6c612d16f484a687dcde2e1a4a425c388656
parent272dad3f84004079328e8f36b2292e7297460ffd
pinctrl: Add pinctrl_pm_select_init_state helper function

If a platform requires an initial pinctrl state during probing, this
helper function provides the client with access to the same initial
state.

eg:
 xxx_suspend_noirq
    ...
    pinctrl_pm_select_sleep_state

 xxx resume_noirq
    pinctrl_pm_select_init_state
    ...
    pinctrl_pm_select_default_state

Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patch.msgid.link/20250820075411.1178729-3-christian.bruel@foss.st.com
drivers/pinctrl/core.c
include/linux/pinctrl/consumer.h