On Thu, 10 Dec 2009, Oliver Neukum wrote: > Am Donnerstag, 10. Dezember 2009 16:45:56 schrieb Alan Stern: > > I don't like the new requirement that drivers must balance their calls > > to usb_autopm_get_interface() and usb_autopm_put_interface(). It's > > awkward; it forces drivers to keep track of the number of unbalanced > > get's. Just consider what you would need to change in order to > > implement it in the serial drivers and you'll see what I mean. > > > > It seems a lot easier to have usbcore keep track for everybody. Then > > the drivers won't need to be updated. > > It would make life easier for drivers. What about the _async() versions? Not a problem. They update the usage counter first, synchronously, before submitting a request for an async suspend or resume. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html