>From: Alan Stern [mailto:[EMAIL PROTECTED] > >> I was thinking about something like the following in my hc_probe(): >> >> ... > >This won't be easy. For one thing, hcd_root_hub_lock is private to hcd.c >and hdev_to_hub is private to hub.c.
Nothing that exporting something like a safe_hdev_to_hub() to the host API cannot do. >Are you sure you need to store this information in the hub structure? Yes, the point is I need to access it from hub_port_wait_reset() to establish that the device speed is USB_SPEED_VARIABLE. >Wouldn't it make more sense to store it in the hcd structure instead? >After all, it is a property of the entire bus and not just one >particular hub, right? I could dig hub->hdev and then play something to guess if that is a root hub and dig out a back pointer to hcd->self.root_hub. But that'd be even more painful. For now, as far as I can tell, the rest of the bus could care less; maybe in the future it is needed? I don't know. The thing is the decoupling between the bus and the root hub for this case is too decoupled :) -- 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