2010-07-27 08:14:35 +00:00
|
|
|
|
2011-11-11 15:58:50 +09:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-13 12:32:07 +02:00
|
|
|
|
2011-08-25 15:34:19 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-29 00:36:53 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-29 00:36:21 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
|
|
|
|
|
PM / Runtime: Rework the "runtime idle" helper routine
The "runtime idle" helper routine, rpm_idle(), currently ignores
return values from .runtime_idle() callbacks executed by it.
However, it turns out that many subsystems use
pm_generic_runtime_idle() which checks the return value of the
driver's callback and executes pm_runtime_suspend() for the device
unless that value is not 0. If that logic is moved to rpm_idle()
instead, pm_generic_runtime_idle() can be dropped and its users
will not need any .runtime_idle() callbacks any more.
Moreover, the PCI, SCSI, and SATA subsystems' .runtime_idle()
routines, pci_pm_runtime_idle(), scsi_runtime_idle(), and
ata_port_runtime_idle(), respectively, as well as a few drivers'
ones may be simplified if rpm_idle() calls rpm_suspend() after 0 has
been returned by the .runtime_idle() callback executed by it.
To reduce overall code bloat, make the changes described above.
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
2013-06-03 21:49:52 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
|
|
|
|
|
2011-06-23 01:52:55 +02:00
|
|
|
|
2011-04-29 00:36:21 +02:00
|
|
|
|
2011-07-01 22:13:44 +02:00
|
|
|
|
|
|
|
|
|
2011-04-29 00:36:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-23 01:52:55 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
2011-04-30 00:25:44 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
2011-06-23 01:52:55 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-30 00:25:44 +02:00
|
|
|
|
2011-06-23 01:52:55 +02:00
|
|
|
|
2011-04-30 00:25:44 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-01 22:13:44 +02:00
|
|
|
|
2010-07-27 08:14:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-10 10:38:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-13 12:32:07 +02:00
|
|
|
|
2011-07-10 10:38:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|