On Wednesday 23 August 2006 14:27, Greg KH wrote: > On Wed, Aug 23, 2006 at 12:57:48PM -0700, I?aky P?rez-Gonz?lez wrote: > > 2. Introduce USB_PORT_STAT_WIRELESS; we take one of the reserved bits > > in the USB port status (bit 15) to report that we are a wireless > > (fake port). > > > > Yes, bad bad, it is taken by the spec. The rationale for doing it > > like this is that we avoid having to use side channels to convey > > the information. > > > > There is no simple way to set a bit in the hub structure as we > > don't know it after we do usb_add_hcd() [struct usb_hcd points to > > 'struct usb_dev *root_hub' at hcd->self.root_hub, but from there > > we'd have to find the binding information...etc, a mess]. > > > > At suggestion from David Howell, moved from using bit 5 to bit 15. > > What happens in 4 years when they come out with a use for that bit?
<shrugging>we change it? I am not happy at all with that approach, I know it could be a future maintenance mess. And I would have much more preferred to set a bit in struct usb_hub. But as I said above, going from struct usb_hcd to it's root hub 'struct usb_hub' is not trivial (or I am missing something too simple). Any pointers in that? -- Inaky ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel