[PATCH] [RFC] [WIP] commands: add tree view capable lsusb
antonynpavlov at gmail.com
Mon Jun 2 03:20:51 PDT 2014
On Mon, 2 Jun 2014 10:31:07 +0200
Sascha Hauer <s.hauer at pengutronix.de> wrote:
> On Mon, Jun 02, 2014 at 09:59:31AM +0200, Holger Schurig wrote:
> > Hmm, I like that it does a rescan, so that it always display the
> > currently connected USB device automatically.
> Note that we only scan scan the bus once during the lifetime of barebox
> unless the force parameter of usb_rescan is true. This is because
> we currently remove all existing USB devices and reinstantiate all
> USB devices found during scanning. The removal of devices is not very
> well implemented. USB only works properly when the tree is scanned once.
If I drop usb_rescan(0) then I have to run 'usb' command to scan bus manually before running 'lsusb'.
It is very uncomfortable.
More information about the barebox