> > Um no. It should fail. It will happen, and is allowed. This works > > correctly today, and we can not break this. > > That's where we disagree: I'm saying it FAILS today (as in 2.4). > Except in the main case, so maybe we don't disagree that much.
Either it works always or it doesn't work. Mostly working stuff is useless. Furthermore, a driver must neither know nor care why it is disconnected. It's supposed to shut up and do as it is told. [..] > >>Although when disconnect() happens because of physical device > >>disconnect (instead of config change, or other disconnect/rebind > >>cases), such requests can/do fail cleanly. > > > > Yeah, I hate the "rebind" nonsense... bleah. > > That's where it fails today! As Oliver noted. > > And we can't change that in the 2.6 usb host framework, because > of where the problem comes from. Endpoint state is associated > too directly with the device ... it should be associated with > interfaces (except in some cases for ep0). Could you elaborate? The key to make reference counting work, seems to be reallocating the data structure operations are based on. Why would it matter whether we send URBs to devices, interfaces or endpoints? [..] > >>When development starts on 2.7, one possibility would be to submit > >>urbs directly to endpoints. Endpoints are logical children of the > >>interfaces, as well as the real targets of the urbs, so they could > >>be cleanly disabled as part of interface disconnect() processing. > > > > Yes, that would be nice to do. Very much so. > > Oh, I've rewritten the usb-skeleton driver so that it contains no locks > > now (with the exception of the BKL to protect on disconnect.) It's a > > world simpler, but I've probably forgotten something here. I've > > attached it below if anyone wants to look at it. Could you send me it again in private mail? The mailer has eaten the first version. Regards Oliver ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel