]> git.sur5r.net Git - u-boot/commit
usb: hub: Change USB hub descriptor to match USB 3.0 hubs
authorBin Meng <bmeng.cn@gmail.com>
Wed, 19 Jul 2017 13:50:00 +0000 (21:50 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:20 +0000 (23:34 +0200)
commit337fc7e665a20bd0c23da233ffb9e8469d999e72
tree9a21fcf2f8404167d53118425b5df5f4aca0e339
parent53771a490e05e8be750a6ee50002e30df4776e9b
usb: hub: Change USB hub descriptor to match USB 3.0 hubs

USB 3.0 hubs have a slightly different hub descriptor than USB 2.0
hubs, with a fixed (rather than variable length) size. Change the
host controller drivers that access those last two fields
(DeviceRemovable and PortPowerCtrlMask) to use the union.

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/emul/sandbox_hub.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/xhci.c
include/usb.h