diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-05-23 23:40:48 -0700 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-05-30 11:59:10 +0200 |
commit | ae751b060e8cee3f9c48112898cd3e31ee6c0734 (patch) | |
tree | a38cf8b9ad310821b792a1794cd0390bfca5b7b2 /drivers/usb/host | |
parent | 793c819c6e2168110ad7cfca0349738c79d79a1f (diff) | |
download | u-boot-ae751b060e8cee3f9c48112898cd3e31ee6c0734.tar.gz u-boot-ae751b060e8cee3f9c48112898cd3e31ee6c0734.tar.bz2 u-boot-ae751b060e8cee3f9c48112898cd3e31ee6c0734.zip |
usb: xhci: Initialize dev_state to 0 in the input slot context
Per xHCI spec chapter 6.2.2 table 6-7, as input, software shall
initialize the dev_state field to '0'. Though this does not seem
to cause any issue with most xHC implementations, let's do this
to conform with the spec.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Marek Vasut <marek.vasut@gmail.com>
Tested-by: Matthias Blankertz <matthias.blankertz@cetitec.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 565948c119..8c1126e79d 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1452,6 +1452,7 @@ static int xhci_update_hub_device(struct udevice *dev, struct usb_device *udev) think_time = (think_time / 666) - 1; if (udev->speed == USB_SPEED_HIGH) slot_ctx->tt_info |= cpu_to_le32(TT_THINK_TIME(think_time)); + slot_ctx->dev_state = 0; return xhci_configure_endpoints(udev, false); } |