[PATCH] platform/x86: ideapad-laptop: Increase timeout to wait for EC answer

Aaron Ma aaron.ma at canonical.com
Mon Mar 5 02:28:49 UTC 2018

Buglink: https://bugs.launchpad.net/bugs/1753347

Lenovo E41-20 needs more time than 100ms to read VPC,
the funtion keys always failed responding.
Increase timeout to get the value from VPC, then
the funtion keys like mic mute key work well.

Signed-off-by: Aaron Ma <aaron.ma at canonical.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
(cherry picked from commit ed5b9ba7bef7f277cbdf315e385b44e0e3b1a9ab)
Signed-off-by: Aaron Ma <aaron.ma at canonical.com>
 drivers/platform/x86/ideapad-laptop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 603fc60..d8bd04c 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -106,7 +106,7 @@ MODULE_PARM_DESC(no_bt_rfkill, "No rfkill for bluetooth.");
  * ACPI Helpers
-#define IDEAPAD_EC_TIMEOUT (100) /* in ms */
+#define IDEAPAD_EC_TIMEOUT (200) /* in ms */
 static int read_method_int(acpi_handle handle, const char *method, int *val)

More information about the kernel-team mailing list