usb: hub: Translate USB 3.0 hub port status into old version
Adoption of U-Boot commit:

| 1commit 74ffc7c
| Author: Bin Meng <bmeng.cn@gmail.com>
| Date:   Wed Jul 19 21:51:12 2017 +0800
|
|     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>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6d1d95a commit bb2cbfb2bfcc85aa480664dd9c0df9ced3775922
@Sascha Hauer Sascha Hauer authored on 3 Mar 2020
Showing 2 changed files
View
drivers/usb/core/hub.c
View
include/usb/usb_defs.h