[PATCH v2] backlight: pwm_bl: Disable PWM on shutdown and suspend

Daniel Thompson daniel.thompson at linaro.org
Tue Sep 26 11:11:37 UTC 2023


On Tue, Sep 26, 2023 at 10:46:12AM +0200, Uwe Kleine-König wrote:
> Since commit 00e7e698bff1 ("backlight: pwm_bl: Configure pwm only once
> per backlight toggle") calling pwm_backlight_power_off() doesn't disable
> the PWM any more. However this is necessary to suspend because PWM
> drivers usually refuse to suspend if they are still enabled.
>
> Also adapt shutdown to disable the PWM for similar reasons.
>
> Fixes: 00e7e698bff1 ("backlight: pwm_bl: Configure pwm only once per backlight toggle")
> Reported-by: Aisheng Dong <aisheng.dong at nxp.com>
> Tested-by: Aisheng Dong <asheng.dong at nxp.com>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Changes proposed look good (and the comment about badly designed boards
going to HiZ state we super helpful).

Only thing from my is why there is no attempt to disable the PWM
from the .remove_new() callback.


Daniel.


More information about the dri-devel mailing list