summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorDavid Wu <david.wu@rock-chips.com>2017-03-01 11:10:55 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-21 07:31:22 (GMT)
commit5f48cacaa72c110b048b73ab928abf70f6ee163e (patch)
tree51f1993916548a478bdbf618866b5b767eacac59 /drivers/block
parent088e5800500e30632b11c4332bcf5923994dc22f (diff)
downloadlinux-5f48cacaa72c110b048b73ab928abf70f6ee163e.tar.xz
pwm: rockchip: State of PWM clock should synchronize with PWM enabled state
commit a900152b5c29aea8134cc7a4c5db25552b3cd8f7 upstream. If the PWM was not enabled at U-Boot loader, PWM could not work for clock always disabled at PWM driver. The PWM clock is enabled at beginning of pwm_apply(), but disabled at end of pwm_apply(). If the PWM was enabled at U-Boot loader, PWM clock is always enabled unless closed by ATF. The pwm-backlight might turn off the power at early suspend, should disable PWM clock for saving power consume. It is important to provide opportunity to enable/disable clock at PWM driver, the PWM consumer should ensure correct order to call PWM enable and disable, and PWM driver ensure state of PWM clock synchronized with PWM enabled state. Fixes: 2bf1c98aa5a4 ("pwm: rockchip: Add support for atomic update") Signed-off-by: David Wu <david.wu@rock-chips.com> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions