aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. Box <[email protected]>2023-04-12 18:32:30 -0700
committerHans de Goede <[email protected]>2023-04-17 12:12:29 +0200
commit14f6f0e3709a8aa987ae78783d2e4d63f88cc13a (patch)
tree6cf8653c32fe0355cff51dddb939e448c695a86e
parent3f581602a22cc5445a66501fa13a80894d83e42a (diff)
platform/x86/intel/sdsi: Change mailbox timeout
On some platforms, it may take up to 400ms for the ready bit to be set in a successful mailbox transaction. Set the timeout to 500ms to cover the worst case. Signed-off-by: David E. Box <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
-rw-r--r--drivers/platform/x86/intel/sdsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/sdsi.c b/drivers/platform/x86/intel/sdsi.c
index 9e0ea2cdd704..556e7c6dbb05 100644
--- a/drivers/platform/x86/intel/sdsi.c
+++ b/drivers/platform/x86/intel/sdsi.c
@@ -49,7 +49,7 @@
#define SDSI_MBOX_CMD_SUCCESS 0x40
#define SDSI_MBOX_CMD_TIMEOUT 0x80
-#define MBOX_TIMEOUT_US 2000
+#define MBOX_TIMEOUT_US 500000
#define MBOX_TIMEOUT_ACQUIRE_US 1000
#define MBOX_POLLING_PERIOD_US 100
#define MBOX_ACQUIRE_NUM_RETRIES 5