Re: Question about struct usb_hub

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tue, 3 Jul 2007, Felipe Balbi wrote:

> Hi Allan,
> 
> let me get this same thread to ask you the following

> How could I force my usb host controller to re-enumerate everything
> attached on the bus through userspace?? would it be some sort of
> control message???

The easiest way is to unbind the hub driver from the root-hub device
and then rebind it.  If B is the bus number, you can do:

	echo -n B-0:1.0 >/sys/bus/usb/drivers/hub/unbind
	echo -n B-0:1.0 >/sys/bus/usb/drivers/hub/bind

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.