Wait 2 seconds before re-enabling backlight to avoid race condition with EC

This commit is contained in:
Jeremy Soller 2018-04-09 13:41:17 -06:00
parent a68fcc8b91
commit cd7477a49c
2 changed files with 30 additions and 32 deletions

View File

@ -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);

View File

@ -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);