From: Aaron Ma Date: Sun, 11 Feb 2018 09:18:49 +0000 (+0800) Subject: platform/x86: ideapad-laptop: Increase timeout to wait for EC answer X-Git-Tag: microblaze-4.16-rc6~19^2~2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=ed5b9ba7bef7f277cbdf315e385b44e0e3b1a9ab;p=linux-2.6-microblaze.git platform/x86: ideapad-laptop: Increase timeout to wait for EC answer 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 Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 5b6f18b18801..535199c9e6bc 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -113,7 +113,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) {