]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: hub: Add a new API to test if a hub device is root hub
authorBin Meng <bmeng.cn@gmail.com>
Wed, 19 Jul 2017 13:51:11 +0000 (21:51 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:30 +0000 (23:34 +0200)
commit46c1d49330fe21b3f9d2f7577ee4268248e7b666
tree68584c48afb9880819e0b16eb985f047ce047092
parenta199a7244899f6385035459cbc62409bd9bbcc23
usb: hub: Add a new API to test if a hub device is root hub

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>
common/usb_hub.c
drivers/usb/host/xhci.c
include/usb.h