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)
commit74ffc7cbb1d2d1f218b1bd67d1bd3cc1cba8aa79
tree31be16dbd8ebb77b4197dcff6c55e7bb76798302
parent46c1d49330fe21b3f9d2f7577ee4268248e7b666
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