]> git.baikalelectronics.ru Git - kernel.git/commitdiff
platform/x86: intel_scu_ipc: Increase virtual timeout to 10s
authorPrashant Malani <pmalani@chromium.org>
Tue, 28 Sep 2021 10:19:32 +0000 (03:19 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 11 Oct 2021 13:34:45 +0000 (15:34 +0200)
Commit a7d53dbbc70a ("platform/x86: intel_scu_ipc: Increase virtual
timeout from 3 to 5 seconds") states that the recommended timeout range
is 5-10 seconds. Adjust the timeout value to the higher of those i.e 10
seconds, to account for situations where the 5 seconds is insufficient
for disconnect command success.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Cc: Benson Leung <bleung@chromium.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20210928101932.2543937-3-pmalani@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_scu_ipc.c

index cfb249da2a7bd05158000f0a3c776618d52406ac..d71a1dce781cf02752216547099dbc046c172e65 100644 (file)
@@ -75,7 +75,7 @@ struct intel_scu_ipc_dev {
 #define IPC_READ_BUFFER                0x90
 
 /* Timeout in jiffies */
-#define IPC_TIMEOUT            (5 * HZ)
+#define IPC_TIMEOUT            (10 * HZ)
 
 static struct intel_scu_ipc_dev *ipcdev; /* Only one for now */
 static DEFINE_MUTEX(ipclock); /* lock used to prevent multiple call to SCU */