Runtime PM framework and USB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oliver:

It's time to think about converting the USB subsystem over to Rafael's 
new runtime PM framework.  It's highly compatible with the code we 
already have, except for one thing: The usage counters have to follow a
strict get/put model.  In other words, we can't allow drivers to access 
the analog of intf->pm_usage_cnt directly, and we can't support 
usb_autopm_set_interface(), usb_autopm_enable(), or 
usb_autopm_disable().

For the most part I think this doesn't matter.  Those routines are used 
in only a few drivers, and it looks like they can be replaced with 
usb_autopm_get_interface() and usb_autopm_put_interface().  Still, it's 
worth checking carefully -- the first step of the conversion will be to 
make those replacements.

In particular, do you agree this will be okay for the net/usb/kaweth,
net/wimax/i2400m, and media/video/stk-webcam drivers?

The only other place these things get used is the hub driver, and I can 
fix that.

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux