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

"Linux Kernel Mailing List" <[email protected]> Fri, 16 Feb 2018 17:44:22 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/ed5b9ba7bef7f277cbdf315e385b44e0e3b1a9ab
Commit:     ed5b9ba7bef7f277cbdf315e385b44e0e3b1a9ab
Parent:     6e1d8ea90932f77843730ada0bfea63093b7212a
Refname:    refs/heads/master
Author:     Aaron Ma <[email protected]>
AuthorDate: Sun Feb 11 17:18:49 2018 +0800
Committer:  Andy Shevchenko <[email protected]>
CommitDate: Thu Feb 15 12:18:32 2018 +0200

    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]>
    Signed-off-by: Andy Shevchenko <[email protected]>
---
 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 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)
 {
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html