[PATCH 0/21] ACPI / PM: Switch ACPI bus type and drivers to dev_pm_ops

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 6/21] ACPI: Use struct dev_pm_ops for power management in processor driver

2012-06-23 Thread Rafael J. Wysocki
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 --

[PATCH 11/21] ACPI: Use struct dev_pm_ops for power management in the SBS driver

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 21/21] ACPI / PM: Drop PM callbacks from the ACPI bus type

2012-06-23 Thread Rafael J. Wysocki
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.

[PATCH 20/21] ACPI / PM: Drop legacy driver PM callbacks that are not used any more

2012-06-23 Thread Rafael J. Wysocki
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:

[PATCH 1/21] ACPI / PM: Drop pm_message_t argument from device suspend callback

2012-06-23 Thread Rafael J. Wysocki
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.

[PATCH 2/21] ACPI / PM: Make acpi_bus_type use struct dev_pm_ops for PM handling

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 4/21] ACPI: Use struct dev_pm_ops for power management in the fan driver

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 5/21] ACPI: Use struct dev_pm_ops for power management in the thermal driver

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 12/21] toshiba_acpi: Use struct dev_pm_ops for power management

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 15/21] panasonic-laptop: Use struct dev_pm_ops for power management

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 16/21] toshiba_bluetooth: Use struct dev_pm_ops for power management

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 3/21] ACPI / PM: Make acpi_bus_type use driver struct dev_pm_ops callbacks

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH 13/21] hp_accel: Use struct dev_pm_ops for power management

2012-06-23 Thread Rafael J. Wysocki
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

[PATCH] sonypi: Use struct dev_pm_ops for power management

2012-06-23 Thread Rafael J. Wysocki
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

Re: [PATCH 2/5] thinkpad_acpi: Use struct dev_pm_ops instead of legacy PM routines

2012-06-23 Thread Henrique de Moraes Holschuh
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

Re: [PATCH 5/5] thinkpad_acpi: Convert dbg_printk to tp_dbg and tp_vdbg

2012-06-23 Thread Henrique de Moraes Holschuh
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

Re: [PATCH 5/5] thinkpad_acpi: Convert dbg_printk to tp_dbg and tp_vdbg

2012-06-23 Thread Joe Perches
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