linux-yocto/drivers/platform
Rong Zhang d2a6a3543f platform/x86: ideapad-laptop: Fix kbd backlight not remembered among boots
commit e10981075a upstream.

On some models supported by ideapad-laptop, the HW/FW can remember the
state of keyboard backlight among boots. However, it is always turned
off while shutting down, as a side effect of the LED class device
unregistering sequence.

This is inconvenient for users who always prefer turning on the
keyboard backlight. Thus, set LED_RETAIN_AT_SHUTDOWN on the LED class
device so that the state of keyboard backlight gets remembered, which
also aligns with the behavior of manufacturer utilities on Windows.

Fixes: 503325f84b ("platform/x86: ideapad-laptop: add keyboard backlight control support")
Cc: stable@vger.kernel.org
Signed-off-by: Rong Zhang <i@rong.moe>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250707163808.155876-3-i@rong.moe
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-01 09:48:42 +01:00
..
arm64
chrome platform/chrome: cros_ec_lpc: Match on Framework ACPI device 2025-04-20 10:15:12 +02:00
cznic platform: cznic: CZNIC_PLATFORMS should depend on ARCH_MVEBU 2025-02-27 04:30:20 -08:00
goldfish
loongarch platform/loongarch: laptop: Add backlight power control support 2025-06-27 11:11:37 +01:00
mellanox platform/mellanox: mlxbf-pmc: Use kstrtobool() to check 0/1 input 2025-08-01 09:48:40 +01:00
mips
olpc
surface
x86 platform/x86: ideapad-laptop: Fix kbd backlight not remembered among boots 2025-08-01 09:48:42 +01:00
Kconfig
Makefile