Skip to content
Commit 5f9b6319 authored by Hardik Gajjar's avatar Hardik Gajjar Committed by Greg Kroah-Hartman
Browse files

usb: xhci: Add timeout argument in address_device USB HCD callback



[ Upstream commit a769154c ]

- The HCD address_device callback now accepts a user-defined timeout value
  in milliseconds, providing better control over command execution times.
- The default timeout value for the address_device command has been set
  to 5000 ms, aligning with the USB 3.2 specification. However, this
  timeout can be adjusted as needed.
- The xhci_setup_device function has been updated to accept the timeout
  value, allowing it to specify the maximum wait time for the command
  operation to complete.
- The hub driver has also been updated to accommodate the newly added
  timeout parameter during the SET_ADDRESS request.

Signed-off-by: default avatarHardik Gajjar <hgajjar@de.adit-jv.com>
Reviewed-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20231027152029.104363-1-hgajjar@de.adit-jv.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 5a1ccf0c ("usb: new quirk to reduce the SET_ADDRESS request timeout")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1d011d97
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment