]> git.baikalelectronics.ru Git - uboot.git/commit
usb: hub: Send correct wValue to get hub descriptor of a USB 3.0 hub
authorBin Meng <bmeng.cn@gmail.com>
Wed, 19 Jul 2017 13:49:58 +0000 (21:49 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:18 +0000 (23:34 +0200)
commit6e004111dd11e31b09e790e17fe59a61b53adcad
treefcb91f8c117a19dab8b140bd7ee314099bc1f56d
parent4dc4dd4b2741bd4091451929b060312c394596aa
usb: hub: Send correct wValue to get hub descriptor of a USB 3.0 hub

Testing a USB 3.0 hub by connecting it to the xHCI port on Intel
MinnowMax, when issuing 'get hub descriptor' to the hub, xHCI
reports a transfer event TRB with a completion code 6 which means
'Stall Error'.

In fact super speed USB hub descriptor type is 0x2a, not 0x29.
Sending correct SETUP packet to the hub makes it not stall anymore.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
common/usb_hub.c
drivers/usb/host/xhci.c
include/usb_defs.h