On Fri, Nov 16, 2018 at 07:52:08AM +0100, Uwe Kleine-König wrote: > Regarding the .request case: The consumer might be interested in taking > over the configured state from the boot loader. So the initially > configured state should be retained. > > For the free case the PWM consumer is responsible to disable the PWM > before calling pwm_release and there are three subcases to consider: > > a) The pwm is already off. Then there is no gain in disabling the PWM > once more. > b) The pwm is still running and there is a good reason for that. (Not > sure this is a valid case, I cannot imagine such a good reason.) > Then it is contra productive to disable the pwm. > c) The pwm is still running because the consumer failed to disable the > PWM. Then the consumer needs fixing and there is little incentive to > paper over the problem in the backend driver. > > This aligns the lpc18xx-sct driver to the other PWM drivers that also > don't reconfigure the hardware in .request and .free. > > Signed-off-by: Uwe Kleine-König > --- > drivers/pwm/pwm-lpc18xx-sct.c | 3 --- > 1 file changed, 3 deletions(-) Applied, with some minor fixes to the commit message (pwm -> PWM, pwm_release -> pwm_put(), ...). Thanks, Thierry