]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
backlight: pwm_bl: Enable PWM before switching regulator on
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 7 Sep 2017 13:11:09 +0000 (15:11 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 7 Sep 2017 13:11:09 +0000 (15:11 +0200)
commit77fdaf8cca24ea03c29febf31f23e9b6832ca445
treec97f4ae72013c5099a54f291397baa01d0cf426e
parent47d2f3cc737ba183a27901faf4048f422aa7c010
backlight: pwm_bl: Enable PWM before switching regulator on

When the PWM is re-enabled after being switched off, the backlight may
flicker due to the backlight power being switched on while the PWM is
still unconfigured. This is especially true if the PWM output is
active low (assuming that the PWM output is low when the PWM is not
enabled).
Configure the PWM before switching backlight power on to prevent this.
drivers/video/backlight/pwm_bl.c