* This can be used by drivers to release an interface without waiting
- * for their disconnect() methods to be called.
- *
- * When the USB subsystem disconnect()s a driver from some interface,
- * it automatically invokes this method for that interface.  That
- * means that even drivers that used usb_driver_claim_interface()
- * usually won't need to call this.
+ * for their disconnect() methods to be called.  Since it calls disconnect,
+ * drivers that use it from their disconnect method need to protect
+ * themselves against infinite recursion.

How about this instead:

 * This can be used by drivers to release an interface without waiting
 * for their disconnect() methods to be called.  Since it calls disconnect
 * (except possibly when used from a probe() method), drivers that use it
 * from their disconnect method need to protect themselves against infinite
 * recursion.

By the way, hopefully the infinite recursion bit will be dealt with in the
driver core, at which point that part of the comment can go away.

Duncan.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to