[PATCH] [RFC] [WIP] commands: add tree view capable lsusb

Antony Pavlov antonynpavlov at gmail.com
Wed May 21 07:11:23 PDT 2014


On Wed, 21 May 2014 15:20:21 +0200
Holger Schurig <holgerschurig at gmail.com> wrote:

> Nice, I would just remove the extra empty lines. Linux' "lsusb -t" for

Good idea! I'll take a look on Linux' lsusb too.

> example produces this:
> 
> holger at desktop:~$ lsusb -t
> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
>     |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
>         |__ Port 1: Dev 27, If 0, Class=HID, Driver=usbhid, 1.5M
>         |__ Port 2: Dev 4, If 0, Class=HID, Driver=usbhid, 1.5M
>         |__ Port 6: Dev 126, If 0, Class=hub, Driver=hub/2p, 480M
> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
>     |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M
> 
> Also please add an entry into commands/Kconfig:

I'll separate lsusb code into independent lsusb.c file.

> And put it into the
> info group, lsusb just shows something, it doesn't manipulate any
> hardware.

Not exactly so. It invokes usb_rescan(0).

-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list