Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <quanxian.wang@intel.com>
Fixes: c1b0bc2dabfa ("usb: typec: Add support for UCSI interface")
Cc: <stable@vger.kernel.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Heikki Krogerus and committed by
Greg Kroah-Hartman
b1b59e16 c20f53c5

+1 -1
+1 -1
drivers/usb/typec/ucsi/ucsi.c
··· 28 28 * difficult to estimate the time it takes for the system to process the command 29 29 * before it is actually passed to the PPM. 30 30 */ 31 - #define UCSI_TIMEOUT_MS 1000 31 + #define UCSI_TIMEOUT_MS 5000 32 32 33 33 /* 34 34 * UCSI_SWAP_TIMEOUT_MS - Timeout for role swap requests