diff options
author | David E. Box <david.e.box@linux.intel.com> | 2023-04-13 03:32:30 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-04-17 12:12:29 +0200 |
commit | 14f6f0e3709a8aa987ae78783d2e4d63f88cc13a (patch) | |
tree | 6cf8653c32fe0355cff51dddb939e448c695a86e /drivers/platform | |
parent | platform/x86/intel/pmt: Ignore uninitialized entries (diff) | |
download | linux-14f6f0e3709a8aa987ae78783d2e4d63f88cc13a.tar.xz linux-14f6f0e3709a8aa987ae78783d2e4d63f88cc13a.zip |
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')
-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 |