diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2014-05-21 12:54:42 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-18 14:48:27 +0200 |
commit | 9fc0d34763d4e3cdaa9ed05210bfdc23286b65a3 (patch) | |
tree | 4b4f49fbf907b5641ed2c214d763ea01834fd720 /drivers/usb/core/usb.c | |
parent | 0420f7a34f02038c4bfcf7a5305c8b9c1f481129 (diff) | |
download | barebox-9fc0d34763d4e3cdaa9ed05210bfdc23286b65a3.tar.gz barebox-9fc0d34763d4e3cdaa9ed05210bfdc23286b65a3.tar.xz |
commands: usb: add tree view capability
This patch adds U-Boot 'usb tree' command functionality to barebox.
Here is an example output:
1 ID 0000:0000
| u-boot EHCI Host Controller
|
+-2 ID 05e3:0606
| USB2.0 Hub
|
+-3 ID 10c4:ea60
| Silicon Labs CP2102 USB to UART Bridge Contr P-00-00669
|
+-4 ID 05e3:0606
| | USB2.0 Hub
| |
| +-5 ID 05e3:0608
| | | USB2.0 Hub
| | |
| | +-6 ID 0d8c:000c
| | C-Media USB Headphone Set
| |
| +-7 ID 0d8c:000c
| C-Media USB Headphone Set
|
+-8 ID 0846:1040
NETGEAR NETGEAR FA120 Adapter
The tree view is enabled with 'usb -t'
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r-- | drivers/usb/core/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index f5724322ce..710f611995 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c @@ -70,7 +70,7 @@ static int hub_port_reset(struct usb_device *dev, int port, unsigned short *portstat); static LIST_HEAD(host_list); -static LIST_HEAD(usb_device_list); +LIST_HEAD(usb_device_list); static void print_usb_device(struct usb_device *dev) { |