The intent was for 2.4 to have this same contract. Having a reference count on the device structure is pointless if that weren't the case.
However, there may be bugs there in HCDs, the core, or drivers with respect to this because it was never clearly defined or enforced.
I just want to point out that from a pragmatic perspective, those changes ("bug" fixes if you insist) won't break drivers that have already been adhering to the stricter contract I described.
I remember trying to figure out how I could write code that'd shut down cleanly on *all* HCDs back in 2.4.early, and the result was just what I described: after disconnect(), if driver never touches the device again, it wouldn't oops with usb-uhci, uhci, or usb-ohci. But if they touched it later, there were problems.
- Dave
------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel