]> git.baikalelectronics.ru Git - uboot.git/commit
usb: hub: Translate USB 3.0 hub port status into old version
authorBin Meng <bmeng.cn@gmail.com>
Wed, 19 Jul 2017 13:51:12 +0000 (21:51 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:31 +0000 (23:34 +0200)
commit506db2774c671d0594da2c3fd81a43e3a1b03be1
tree31be16dbd8ebb77b4197dcff6c55e7bb76798302
parente166405e63e7c040e0c07c6566e96d33c943f189
usb: hub: Translate USB 3.0 hub port status into old version

USB 3.0 hub port status field has different bit positions from 2.0
hubs. Since U-Boot only understands the old version, translate the
new one into the old one.

Since we are going to add USB 3.0 hub support, this feature is only
available with driver model USB.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/usb_hub.c