From 11be87540be69026b328ec7142c7ebdcde89a29f Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Tue, 6 Dec 2016 17:56:00 -0800 Subject: [PATCH] kevin: gru: Don't disable trackpad in tablet mode. Apparently, one does not simply remove power from the trackpad and restore it at will; the kernel needs to be involved and decide if the device needs to be fully reinitialized, or if it was supposed to keep some state. Therefore, let's not touch it except from startup and shutdown and let the higher parts of the stack make the necessary decisions. BUG=chrome-os-partner:60478 BRANCH=gru TEST=Boot in tablet mode and verify trackpad still works. TEST=Go from clamshell to tablet mode and verify trackpad still works in both modes. Change-Id: I7674c5516ce4d237b0d2a15fb94b47e6fbe3ba39 Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/417110 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Aseda Aboagye --- board/kevin/board.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/kevin/board.c b/board/kevin/board.c index 20ef89d8a3..3c9e9449f7 100644 --- a/board/kevin/board.c +++ b/board/kevin/board.c @@ -711,9 +711,6 @@ const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); void lid_angle_peripheral_enable(int enable) { keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE); - - /* enable/disable touchpad */ - gpio_set_level(GPIO_PP3300_TRACKPAD_EN_L, !enable); } #endif