From 2b7d9485e69a03e7d4e93f1f07e411172ee7bf5b Mon Sep 17 00:00:00 2001 From: Parth Malkan Date: Fri, 5 Aug 2022 13:35:03 -0700 Subject: mithrax: rgbkb: Fix KB BL during S0ix -> S0 Mithrax disables EC_KB_BL during suspend, which resets the LED driver and doesn't restore the KB BL state after resuming from suspend. This patch fixes the issue. BUG=b:241497661 TEST=Manual test on Mithrax BRANCH=None Signed-off-by: Parth Malkan Change-Id: I52a27d128e62acb8e6fa2849f92d787d752a9c33 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3811890 Reviewed-by: Daisuke Nojiri --- board/mithrax/board.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/board/mithrax/board.c b/board/mithrax/board.c index ca29e68fbf..05a5e86f01 100644 --- a/board/mithrax/board.c +++ b/board/mithrax/board.c @@ -59,14 +59,6 @@ static void board_chipset_resume(void) } DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT); -/* Called on AP S0 -> S3 transition */ -static void board_chipset_suspend(void) -{ - /* Turn off the keyboard backlight if it's on. */ - gpio_set_level(GPIO_EC_KB_BL_EN_L, 1); -} -DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT); - /* Called on AP S5 -> S3 transition */ static void board_chipset_startup(void) { -- cgit v1.2.1