* PGP Signed by an unknown keyI did quick grep for the pinctrl_pm_select_* functions in the code tree and found usage of these APIs in some of the places.
On Thu, Apr 06, 2017 at 09:57:09AM +0100, Jon Hunter wrote:
On 05/04/17 15:13, Laxman Dewangan wrote:Agreed, I think that's how these states are meant to be used.
+state of the system. The configuration of pin is provided via the pinctrlWhy not just use the pre-defined names here? There is a pre-defined name
+DT node as detailed in the pinctrl DT binding document
+ Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
+
+The PWM node will have following optional properties.
+pinctrl-names: Pin state names. Must be "suspend" and "resume".
for "default", "idle" and "sleep" and then you can use the following
APIs and avoid the lookup of the state ...
pinctrl_pm_select_default_state()
pinctrl_pm_select_idle_state()
pinctrl_pm_select_sleep_state()
Note for i2c [0][1], I used "default" as the active/on state (which I
know is not that descriptive) and then used 'idle' as the suspended
state. This way we don't need any custom names.