summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/sysfs.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2019-06-07 17:44:09 +0200
committerThierry Reding <thierry.reding@gmail.com>2019-06-26 11:39:05 +0200
commit6580fd173070a3a494d94b40d7ca5e5a815fe29a (patch)
tree2b0880eb21aa067eaeb001f303a1e399edbe6f37 /drivers/pwm/sysfs.c
parent1ac99c58bda9b911d6e47ed6d4d04a2b00ff703b (diff)
downloadlinux-stable-6580fd173070a3a494d94b40d7ca5e5a815fe29a.tar.gz
linux-stable-6580fd173070a3a494d94b40d7ca5e5a815fe29a.tar.bz2
linux-stable-6580fd173070a3a494d94b40d7ca5e5a815fe29a.zip
pwm: jz4740: Force TCU2 channels to return to their init level
When the PWM mode of TCU2 channels is disabled, their corresponding pin does not always return to its initial level. Force this by using a small trick: we set duty > period, which is an invalid configuration for the hardware, which then correctly resets the pin to the initial level. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/sysfs.c')
0 files changed, 0 insertions, 0 deletions