]> git.baikalelectronics.ru Git - uboot.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)
commite166405e63e7c040e0c07c6566e96d33c943f189
tree68584c48afb9880819e0b16eb985f047ce047092
parentd18bf5721463e824917e450b1db7a34988bdb6c2
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