From: Heikki Krogerus Date: Wed, 18 Apr 2018 12:34:10 +0000 (+0300) Subject: usb: typec: ucsi: Increase command completion timeout value X-Git-Tag: v4.17-rc3~20^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b1b59e16075f5e5da2943ce8de724ab96bc3c6c2;p=users%2Fjedix%2Flinux-maple.git 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. Reported-by: Quanxian Wang Fixes: c1b0bc2dabfa ("usb: typec: Add support for UCSI interface") Cc: Signed-off-by: Heikki Krogerus Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c index bf0977fbd100a..bd5cca5632b39 100644 --- a/drivers/usb/typec/ucsi/ucsi.c +++ b/drivers/usb/typec/ucsi/ucsi.c @@ -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