platform/x86: ideapad-laptop: Increase timeout to wait for EC answer
PATCH 1/1 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 <[email protected]>
--- drivers/platform/x86/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/ideapad-laptop.c +1 -1
@@ -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) {
Signature · 1 line
2.14.3
Quoted 5 lines · Aaron Ma
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.
Pushed to my review and testing queue, thanks!
Quoted 21 lines
Signed-off-by Aaron Ma <[email protected]>--- drivers/platform/x86/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/ideapad-laptop.c +1
-2@@ -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) { --2.14.3
Signature · 2 lines
With Best Regards, Andy Shevchenko