Re: [PATCH 2/2] pwm: stm32: add power management support

2019-10-01 Thread Fabrice Gasnier
On 10/1/19 11:51 AM, Uwe Kleine-König wrote: > Hello Fabrice, > > On Tue, Oct 01, 2019 at 10:18:31AM +0200, Fabrice Gasnier wrote: >> On 10/1/19 9:04 AM, Uwe Kleine-König wrote: >>> On Mon, Sep 30, 2019 at 05:39:11PM +0200, Fabrice Gasnier wrote: Add suspend/resume PM sleep ops. When going to

Re: [PATCH 2/2] pwm: stm32: add power management support

2019-10-01 Thread Uwe Kleine-König
Hello Fabrice, On Tue, Oct 01, 2019 at 10:18:31AM +0200, Fabrice Gasnier wrote: > On 10/1/19 9:04 AM, Uwe Kleine-König wrote: > > On Mon, Sep 30, 2019 at 05:39:11PM +0200, Fabrice Gasnier wrote: > >> Add suspend/resume PM sleep ops. When going to low power, enforce the PWM > >> channel isn't activ

Re: [PATCH 2/2] pwm: stm32: add power management support

2019-10-01 Thread Fabrice Gasnier
On 10/1/19 9:04 AM, Uwe Kleine-König wrote: > Hello Fabrice, > > On Mon, Sep 30, 2019 at 05:39:11PM +0200, Fabrice Gasnier wrote: >> 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 seque

Re: [PATCH 2/2] pwm: stm32: add power management support

2019-10-01 Thread Uwe Kleine-König
Hello Fabrice, On Mon, Sep 30, 2019 at 05:39:11PM +0200, Fabrice Gasnier wrote: > 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, see [1]. So, perform a check here, and handle th

[PATCH 2/2] pwm: stm32: add power management support

2019-09-30 Thread Fabrice Gasnier
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, see [1]. So, perform a check here, and handle the pinctrl states. Also restore the break inputs upon resume, as registers content may b