On Wed, 11 Jan 2006, NIIBE Yutaka wrote: > Thanks for your replies. > > David Brownell wrote: > > I'm unclear on why that would be better than for example a usermode > > program to do that using existing usbfs facilities to say to the hub > > driver "please turn that port off". > > I just didn't know about USB protocol stack and its feature. > > Following your suggestion, what I implemented is here. > I attach user space program. > > Your comments are welcome. BTW, this is quite useful feature for us.
You have completely misunderstood David's point. You _don't_ need to modify the kernel at all. Just use usbfs to send a single URB to the hub (USBDEVFS_CONTROL), containing a Clear-Port-Feature(PORT_POWER) request, or the equivalent to turn on the power or adjust the LED. Alan Stern ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel