[PATCH] [RFC] [WIP] commands: add tree view capable lsusb
Sascha Hauer
s.hauer at pengutronix.de
Mon Jun 2 00:24:50 PDT 2014
On Wed, May 21, 2014 at 06:11:23PM +0400, Antony Pavlov wrote:
> 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).
You could drop the usb_rescan(). Would that be too confusing?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list