diff options
author | David E. Box <david.e.box@linux.intel.com> | 2023-04-13 04:32:30 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-04-17 13:12:29 +0300 |
commit | 14f6f0e3709a8aa987ae78783d2e4d63f88cc13a (patch) | |
tree | 6cf8653c32fe0355cff51dddb939e448c695a86e /drivers/platform/x86/intel/sdsi.c | |
parent | 3f581602a22cc5445a66501fa13a80894d83e42a (diff) | |
download | linux-14f6f0e3709a8aa987ae78783d2e4d63f88cc13a.tar.xz |
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 <david.e.box@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230413013230.1521584-1-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/intel/sdsi.c')
-rw-r--r-- | drivers/platform/x86/intel/sdsi.c | 2 |
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 |