On Tuesday 11 January 2005 8:01 pm, Brian Ristuccia wrote:
> 
> Is there an existing way for me to programaticly disconnect a device from
> the USB bus? Perhaps I'm looking in the wrong places, but I can't find
> anything in the linux USB API.
> 
> I can get roughly the behavior I want by installing a seperate USB host for
> the device in question and then unloading the driver and powering off the
> host. That's a nasty hack. Certainly there must be a better way.

The current stack doesn't have such a way, but it sounds almost like
you're describing the ability to selectively power down (and back up)
a given hub port ... which USB certainly allows.

To code that you'd need to change the hub driver in usbcore, and also
guarantee you're using hubs that support per-port power switching.
Most external hubs do; many root hubs don't.

That gets into power management, which is kind of messy lately
(though parts of it are finally starting to behave).

- Dave


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to