]> git.sur5r.net Git - u-boot/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)
commitf34211960214290d8b38dab2fbdfb18f07582f45
treefcb91f8c117a19dab8b140bd7ee314099bc1f56d
parentf7a9e5dd03f83cf31a85eadf8666939abe47b739
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