Wait 2 seconds before re-enabling backlight to avoid race condition with EC
This commit is contained in:
parent
a68fcc8b91
commit
cd7477a49c
4
kb_led.c
4
kb_led.c
|
|
@ -224,15 +224,11 @@ static void kb_led_resume(void) {
|
|||
// Disable keyboard backlight
|
||||
kb_led_disable();
|
||||
|
||||
msleep(500);
|
||||
|
||||
// Reset current color
|
||||
for (region = 0; region < sizeof(kb_led_regions)/sizeof(union kb_led_color); region++) {
|
||||
kb_led_color_set(region, kb_led_regions[region]);
|
||||
}
|
||||
|
||||
msleep(500);
|
||||
|
||||
// Reset current brightness
|
||||
kb_led_set(&kb_led, kb_led_brightness);
|
||||
|
||||
|
|
|
|||
|
|
@ -273,6 +273,8 @@ static int s76_suspend(struct platform_device *dev, pm_message_t status) {
|
|||
static int s76_resume(struct platform_device *dev) {
|
||||
S76_INFO("s76_resume\n");
|
||||
|
||||
msleep(2000);
|
||||
|
||||
// Enable hotkey support
|
||||
s76_wmbb(0x46, 0, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue