Skip to content

Commit a9e8fe3

Browse files
wentongwugregkh
authored andcommitted
mei: vsc: Prevent timeout error with added delay post-firmware download
After completing the firmware download, the firmware requires some time to become functional. This change introduces additional sleep time before the first read operation to prevent a confusing timeout error in vsc_tp_xfer(). Fixes: 566f5ca ("mei: Add transport driver for IVSC device") Cc: [email protected] # for 6.8+ Signed-off-by: Wentong Wu <[email protected]> Tested-by: Jason Chen <[email protected]> Acked-by: Sakari Ailus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 07de60a commit a9e8fe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/misc/mei/platform-vsc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
#define MEI_VSC_MAX_MSG_SIZE 512
3030

31-
#define MEI_VSC_POLL_DELAY_US (50 * USEC_PER_MSEC)
32-
#define MEI_VSC_POLL_TIMEOUT_US (200 * USEC_PER_MSEC)
31+
#define MEI_VSC_POLL_DELAY_US (100 * USEC_PER_MSEC)
32+
#define MEI_VSC_POLL_TIMEOUT_US (400 * USEC_PER_MSEC)
3333

3434
#define mei_dev_to_vsc_hw(dev) ((struct mei_vsc_hw *)((dev)->hw))
3535

0 commit comments

Comments
 (0)