linux/drivers/video/backlight
Uwe Kleine-König 40da473771 backlight: pwm_bl: Disable PWM on shutdown, suspend and remove
Since commit 00e7e698bf ("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 and remove callbacks to disable the PWM for similar
reasons.

Fixes: 00e7e698bf ("backlight: pwm_bl: Configure pwm only once per backlight toggle")
Reported-by: Aisheng Dong <aisheng.dong@nxp.com>
Tested-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20231009093223.227286-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Lee Jones <lee@kernel.org>
2023-10-12 10:31:15 +01:00
..
88pm860x_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
aat2870_bl.c backlight: aat2870_bl: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
adp5520_bl.c backlight: adp5520_bl: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
adp8860_bl.c backlight: Switch i2c drivers back to use .probe() 2023-05-25 12:25:26 +01:00
adp8870_bl.c backlight: Switch i2c drivers back to use .probe() 2023-05-25 12:25:26 +01:00
ams369fg06.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
apple_bl.c backlight: apple_bl: Use acpi_video_get_backlight_type() 2023-03-16 13:33:11 +01:00
arcxcnn_bl.c backlight: Switch i2c drivers back to use .probe() 2023-05-25 12:25:26 +01:00
as3711_bl.c backlight: as3711: Use of_property_read_bool() for boolean properties 2023-03-16 16:12:53 +00:00
backlight.c fbdev: Split frame buffer support in FB and FB_CORE symbols 2023-07-22 12:25:04 +02:00
bd6107.c drm-misc-next for v6.6: 2023-07-17 15:37:57 +02:00
corgi_lcd.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
cr_bllcd.c backlight: cr_bllcd: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
da903x_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
da9052_bl.c backlight: da9052_bl: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
ep93xx_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
gpio_backlight.c - New Functionality 2023-09-06 09:00:37 -07:00
hp680_bl.c backlight: hp680_bl: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
hx8357.c backlight: hx8357: Use of_property_present() for testing DT property presence 2023-03-16 16:12:27 +00:00
ili922x.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ili9320.c video: backlight: ili9320: Make ili9320_remove() return void 2021-10-20 15:13:59 +01:00
ili9320.h video: backlight: ili9320: Make ili9320_remove() return void 2021-10-20 15:13:59 +01:00
ipaq_micro_bl.c backlight: ipaq_micro: Use backlight helper 2023-02-22 10:55:27 +00:00
jornada720_bl.c backlight: journada720: Fix Wmisleading-indentation warning 2021-03-23 09:42:55 +00:00
jornada720_lcd.c
kb3886_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
Kconfig backlight: apple_bl: Use acpi_video_get_backlight_type() 2023-03-16 13:33:11 +01:00
ktd253-backlight.c backlight: ktd253: Switch to use dev_err_probe() helper 2023-02-22 10:54:59 +00:00
ktz8866.c backlight: Switch i2c drivers back to use .probe() 2023-05-25 12:25:26 +01:00
l4f00242t03.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
lcd.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
led_bl.c backlight: led_bl: Remove redundant of_match_ptr() 2023-08-21 12:16:56 +01:00
lm3533_bl.c backlight: lm3533_bl: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
lm3630a_bl.c backlight: Switch i2c drivers back to use .probe() 2023-05-25 12:25:26 +01:00
lm3639_bl.c backlight: Switch i2c drivers back to use .probe() 2023-05-25 12:25:26 +01:00
lms283gf05.c backlight: lms283gf05: Convert to GPIO descriptors 2021-01-20 12:47:11 +00:00
lms501kf03.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
locomolcd.c ARM: pxa: remove unused board files 2023-01-20 11:23:44 +01:00
lp855x_bl.c backlight: lp855x: Drop ret variable in brightness change function 2023-08-18 16:37:51 +01:00
lp8788_bl.c backlight: lp8788_bl: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
ltv350qv.c video:backlight: remove reference to AVR32 architecture in ltv350qv 2022-08-03 11:11:26 +02:00
ltv350qv.h
lv5207lp.c drm-misc-next for v6.6: 2023-07-17 15:37:57 +02:00
Makefile backlight: ktz8866: Add support for Kinetic KTZ8866 backlight 2023-02-22 10:55:28 +00:00
max8925_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
mt6370-backlight.c backlight: mt6370-backlight: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
omap1_bl.c fbdev: omap: avoid using mach/*.h files 2022-04-21 15:01:14 +02:00
otm3225a.c
pandora_bl.c
pcf50633-backlight.c
platform_lcd.c Revert "drivers/video/backlight/platform_lcd.c: add support for device tree based probe" 2022-07-13 09:11:21 +01:00
pwm_bl.c backlight: pwm_bl: Disable PWM on shutdown, suspend and remove 2023-10-12 10:31:15 +01:00
qcom-wled.c backlight: qcom-wled: Explicitly include correct DT includes 2023-07-28 10:01:28 +01:00
rave-sp-backlight.c backlight: rave-sp: Leave initial state and register with correct device 2019-08-12 09:11:10 +01:00
rt4831-backlight.c backlight: rt4831-backlight: Convert to platform remove callback returning void 2023-03-16 15:08:37 +00:00
sky81452-backlight.c backlight: sky81452-backlight: Convert to platform remove callback returning void 2023-03-16 15:08:37 +00:00
tdo24m.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
tps65217_bl.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
vgg2432a4.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
wm831x_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00