Hi all,
The following patchset converts the ACPI bus type and all of the ACPI drivers
to the power management handling based on struct dev_pm_ops. It does that in
the following way:
(1) The (unused) pm_message_t argument is dropped from the ACPI driver suspend
callback throughout the tree
From: Rafael J. Wysocki r...@sisk.pl
Make the ACPI processor driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/acpi/processor_driver.c |6 --
From: Rafael J. Wysocki r...@sisk.pl
Make the ACPI Smart Battery System driver define its PM callbacks
through a struct dev_pm_ops object rather than by using legacy PM
hooks in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/acpi/sbs.c | 10 ++
1
From: Rafael J. Wysocki r...@sisk.pl
Since the ACPI bus type's PM callbacks only execute the driver ones
without doing anything else, they can be dropped, because the driver
callbacks will be executed by the PM core directly if bus type
(or other subsystem) callbacks are not present.
From: Rafael J. Wysocki r...@sisk.pl
Since the legacy ACPI driver PM callbacks included into
struct acpi_device_ops are not used any more, drop them.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
include/acpi/acpi_bus.h |4
1 file changed, 4 deletions(-)
Index:
From: Rafael J. Wysocki r...@sisk.pl
None of the drivers implementing the ACPI device suspend callback
uses the pm_message_t argument of it, so this argument may be dropped
entirely from that callback. This will simplify switching the ACPI
bus type to PM handling based on struct dev_pm_ops.
From: Rafael J. Wysocki r...@sisk.pl
Make the acpi_bus_type bus type define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct bus_type.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/acpi/scan.c |9 +
1 file changed, 5
From: Rafael J. Wysocki r...@sisk.pl
Make the ACPI fan driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/acpi/fan.c | 21 +++--
1 file
From: Rafael J. Wysocki r...@sisk.pl
Make the ACPI thermal driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/acpi/thermal.c | 17 ++---
1 file
From: Rafael J. Wysocki r...@sisk.pl
Make the toshiba_acpi driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/platform/x86/toshiba_acpi.c | 14
From: Rafael J. Wysocki r...@sisk.pl
Make the panasonic-laptop driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/platform/x86/panasonic-laptop.c | 16
From: Rafael J. Wysocki r...@sisk.pl
Make the toshiba_bluetooth driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/platform/x86/toshiba_bluetooth.c | 10
From: Rafael J. Wysocki r...@sisk.pl
Modify acpi_bus_type so that it executes PM callbacks provided
by drivers through their struct dev_pm_ops objects, if present,
while still allowing the legacy ACPI PM callbacks to take precedence.
This will make it possible to convert ACPI drivers one by one
From: Rafael J. Wysocki r...@sisk.pl
Make the hp_accel driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
drivers/platform/x86/hp_accel.c | 15 ---
1
From: Rafael J. Wysocki r...@sisk.pl
Make the sonypi driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct platform_driver.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
---
Hi,
If there are no objections, I'd like to push this patch
On Sun, 17 Jun 2012, Rafael J. Wysocki wrote:
From: Rafael J. Wysocki r...@sisk.pl
Make the thinkpad_acpi driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct platform_driver.
Signed-off-by: Rafael J. Wysocki r...@sisk.pl
On Sun, 17 Jun 2012, Joe Perches wrote:
Use a more current logging style.
Add #define DEBUG and use pr_debug to enable dynamic debugging.
Coalesce formats and align arguments.
Signed-off-by: Joe Perches j...@perches.com
Joe, are there any extra procedures required from the user to get the
On Sat, 2012-06-23 at 21:40 -0300, Henrique de Moraes Holschuh wrote:
On Sun, 17 Jun 2012, Joe Perches wrote:
Use a more current logging style.
Add #define DEBUG and use pr_debug to enable dynamic debugging.
Coalesce formats and align arguments.
Signed-off-by: Joe Perches
18 matches
Mail list logo