[RFC] pinctrl: pinctrl-imx: implement suspend/resume
linus.walleij at linaro.org
Wed Jun 10 00:48:21 PDT 2015
On Thu, Jun 4, 2015 at 10:24 PM, Stefan Agner <stefan at agner.ch> wrote:
> I actually tried to experiment with pinctrl_pm_select_default_state and
> pinctrl_pm_select_sleep_state. I think, one solution would be to create
> sleep states for all drivers. However, it's not necessary to change to a
> sleep state, since the controller looses the state anyway. What would be
> required is having a function which allows to force the default state
> for all pinctrl settings... As far as I can tell, there is no such
> functionality currently...? Linus?
You could do it that way, but it requires that the driver depends
on CONFIG_PM as the states are not cached in the driver
core otherwise (drivers/base/pinctrl.c).
I have no strong opinion on the subject really... either way works.
More information about the linux-arm-kernel