Skip to contentSkip to conversation

usb: typec: ucsi: Increase command completion timeout value

PATCH New Heikki Krogerus 1 participant 1 message Apr 18, 2018

Subsystems (3)
lore
Share & tools
lore

Heikki Krogerus

author maintainer
#0 lore raw

PATCH 2/2 usb: typec: ucsi: Increase command completion timeout value

On some boards, under heavy load, the EC firmware is unable to complete commands even in one second. Increasing the command completion timeout value to five seconds.

Fixes c1b0bc2dabfa ("usb: typec: Add support for UCSI interface")
---
 drivers/usb/typec/ucsi/ucsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/ucsi/ucsi.c +1 -1
index bf0977fbd100..bd5cca5632b3 100644
@@ -28,7 +28,7 @@
  * difficult to estimate the time it takes for the system to process the command
  * before it is actually passed to the PPM.
  */
-#define UCSI_TIMEOUT_MS		1000
+#define UCSI_TIMEOUT_MS		5000
 
 /*
  * UCSI_SWAP_TIMEOUT_MS - Timeout for role swap requests