
28 Jul
2017
28 Jul
'17
6:19 a.m.
On 19 July 2017 at 07:51, Bin Meng bmeng.cn@gmail.com wrote:
Sometimes we need know if a given hub device is root hub or not. Add a new API to test this. This removes the xHCI driver's own version is_root_hub() and change to use the new API.
While we are here, remove the unused/commented out get_usb_device() in the xHCI driver too.
Signed-off-by: Bin Meng bmeng.cn@gmail.com
Changes in v3: None Changes in v2:
- squash the xchi is_root_port() changes into previous commit
common/usb_hub.c | 10 ++++++++++ drivers/usb/host/xhci.c | 24 ++---------------------- include/usb.h | 8 ++++++++ 3 files changed, 20 insertions(+), 22 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org