On Wed, 12 Jan 2005, Brian Ristuccia wrote:

> On Wed, Jan 12, 2005 at 07:42:57AM -0800, David Brownell wrote:
> > 
> > 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.
> > 
> 
> Yes! You've hit the nail right on the head!
> 
> > 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.
> > 
> 
> Lack of power control on hub ports is a bummer, but something I suppose I
> could work around considering the specialized nature of my application.
> 
> I'll do some hacking and see if I can get things basicly working. If there's
> interest in this sort of thing, I can send patches to the list and perhaps
> someone with more experience in the USB stack than I have can sanitize
> things for general purpose use.

You ought to be able to write a user program to send a set-port-feature 
message to any given hub.  No kernel driver changes needed.

Alan Stern



-------------------------------------------------------
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
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to