summaryrefslogtreecommitdiff
path: root/Documentation/leds
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-04-30 22:59:49 +0300
committerLee Jones <lee@kernel.org>2023-05-25 14:16:14 +0300
commit9697e2f01f1364acea110e808fde4386b0cc159f (patch)
tree506cd4eee8fdb8456701bb6dda135cf4ceb1d56e /Documentation/leds
parent047da762b9a937d60c16e2c8392c326e5ab11a1d (diff)
downloadlinux-9697e2f01f1364acea110e808fde4386b0cc159f.tar.xz
leds: cht-wcove: Add suspend/resume handling
When LED1 is showing the tablet is charging and then the device gets suspended followed by unplugging the charger, then it will incorrectly still show it is charging. To avoid this turn both LEDs off on suspend, just like the PMIC always turns them off when the tablet is powered off (even if the tablet is charging). If hw-control is supported for LED1, then restore the initial hw-control settings to let the hw control LED1 while suspended. To restore the state the LEDs had before suspending, save it before turning the LEDs off and restore it on resume. Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230430195952.862527-3-hdegoede@redhat.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'Documentation/leds')
0 files changed, 0 insertions, 0 deletions