pwm: stm32-lp: Add power management support
authorFabrice Gasnier <fabrice.gasnier@st.com>
Thu, 18 Apr 2019 09:37:46 +0000 (11:37 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 25 Jun 2019 12:49:50 +0000 (14:49 +0200)
commitcce4a833fc6dfdb43a492876ad06f506a61f8fbd
tree669c86de78bf2f7ff40fdee959a9889bc1aae8f1
parentf6c9b59769db7ec21230502d889d4bbceac56b67
pwm: stm32-lp: Add power management support

Add suspend/resume PM sleep ops. When going to low power, enforce the PWM
channel isn't active. Let the PWM consumers disable it during their own
suspend sequence. Only perform a check here, and handle the pinctrl states.
See [1].
[1] https://lkml.org/lkml/2019/2/5/770

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-stm32-lp.c