From b63404ba2dd0181c74d36d246c48a44de9c02081 Mon Sep 17 00:00:00 2001 From: Bruce Date: Fri, 20 Jan 2017 15:36:49 +0800 Subject: [PATCH] pyro: remove KB/TP control in S3 Remove all TP control because TP lose function. Remove KB control because this action of disable KB in S3 work after modify 'SENSOR_ACTIVE_S0' to 'SENSOR_ACTIVE_S0_S3'. BUG=chrome-os-partner:62138 BRANCH=reef TEST=check TP don't lose function after resume, then KB disable in tablet mode and enable normal mode whether S0 or S3. Change-Id: Ida023f8fa34cadb80dbcd071ee77927e94a5386d Signed-off-by: Bruce.Wan Reviewed-on: https://chromium-review.googlesource.com/430560 Commit-Ready: Aaron Durbin Tested-by: Keith Tzeng Reviewed-by: Aaron Durbin --- board/pyro/board.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/board/pyro/board.c b/board/pyro/board.c index d12b787a6a..a8d3bde88a 100644 --- a/board/pyro/board.c +++ b/board/pyro/board.c @@ -680,17 +680,6 @@ void lid_angle_peripheral_enable(int enable) if (tablet_get_mode() || chipset_in_state(CHIPSET_STATE_ANY_OFF)) enable = 0; keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE); - - /* - * In S3 state, then disable KB/TP function - * when state switch to tablet mode from normal mode. - * Enable KB/TP function when state switch to nromal - * mode from tablet mode. - */ - if (chipset_in_state(CHIPSET_STATE_SUSPEND)) { - keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE); - gpio_set_level(GPIO_EN_P3300_TRACKPAD_ODL, !enable); - } } #endif