1
linux/arch/arm/mach-at91
Rafael J. Wysocki 2391dae3e3 PM: introduce set_target method in pm_ops
Commit 52ade9b3b9 changed the suspend code
ordering to execute pm_ops->prepare() after the device model per-device
.suspend() calls in order to fix some ACPI-related issues.  Unfortunately, it
broke the at91 platform which assumed that pm_ops->prepare() would be called
before suspending devices.

at91 used pm_ops->prepare() to get notified of the target system sleep state,
so that it could use this information while suspending devices.  However, with
the current suspend code ordering pm_ops->prepare() is called too late for
this purpose.  Thus, at91 needs an additional method in 'struct pm_ops' that
will be used for notifying the platform of the target system sleep state.
Moreover, in the future such a method will also be needed by ACPI.

This patch adds the .set_target() method to 'struct pm_ops' and makes the
suspend code call it, if implemented, before executing the device model
per-device .suspend() calls.  It also modifies the at91 code to use
pm_ops->set_target() instead of pm_ops->prepare().

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-01 12:29:44 -07:00
..
at91rm9200_devices.c [ARM] 4372/1: Define byte sizes in asm-arm/sizes.h 2007-05-11 21:07:58 +01:00
at91rm9200_time.c Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
at91rm9200.c [ARM] 4351/1: AT91: Define rest of peripheral clocks 2007-05-03 14:10:21 +01:00
at91sam9rl_devices.c [ARM] 4372/1: Define byte sizes in asm-arm/sizes.h 2007-05-11 21:07:58 +01:00
at91sam9rl.c [ARM] 4370/3: AT91: Support for Atmel AT91SAM9RL processors. 2007-05-11 21:07:54 +01:00
at91sam926x_time.c Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
at91sam9260_devices.c [ARM] 4372/1: Define byte sizes in asm-arm/sizes.h 2007-05-11 21:07:58 +01:00
at91sam9260.c [ARM] 4351/1: AT91: Define rest of peripheral clocks 2007-05-03 14:10:21 +01:00
at91sam9261_devices.c [ARM] 4372/1: Define byte sizes in asm-arm/sizes.h 2007-05-11 21:07:58 +01:00
at91sam9261.c [ARM] 4351/1: AT91: Define rest of peripheral clocks 2007-05-03 14:10:21 +01:00
at91sam9263_devices.c [ARM] 4372/1: Define byte sizes in asm-arm/sizes.h 2007-05-11 21:07:58 +01:00
at91sam9263.c [ARM] 4351/1: AT91: Define rest of peripheral clocks 2007-05-03 14:10:21 +01:00
board-1arm.c
board-carmeva.c [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
board-csb337.c [ARM] 4148/1: AT91: Physically mapped flash on CSB337 and CSB637 boards. 2007-02-08 14:55:28 +00:00
board-csb637.c [ARM] 4148/1: AT91: Physically mapped flash on CSB337 and CSB637 boards. 2007-02-08 14:55:28 +00:00
board-dk.c [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
board-eb9200.c [ARM] 4143/1: AT91: Prepare for AT91SAM9263 support 2007-02-08 14:55:22 +00:00
board-ek.c [ARM] 4143/1: AT91: Prepare for AT91SAM9263 support 2007-02-08 14:55:22 +00:00
board-kafa.c
board-kb9202.c [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
board-picotux200.c [ARM] 4300/1: Add picotux 200 ARM board 2007-04-21 21:01:08 +01:00
board-sam9rlek.c [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
board-sam9260ek.c [ARM] 4355/2: AT91: SAM9260-EK and SAM9263-EK board updates 2007-05-03 17:42:42 +01:00
board-sam9261ek.c [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
board-sam9263ek.c [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
clock.c [ARM] 4418/1: AT91: Number of programmable clocks differs 2007-06-02 21:31:43 +01:00
clock.h
generic.h [ARM] 4370/3: AT91: Support for Atmel AT91SAM9RL processors. 2007-05-11 21:07:54 +01:00
gpio.c [PATCH] gpio_direction_output() needs an initial value 2007-03-16 19:25:04 -07:00
irq.c
Kconfig [ARM] 4371/1: AT91: Support for Atmel AT91SAM9RL-EK development board 2007-05-11 21:07:59 +01:00
leds.c [ARM] 4150/1: AT91: LED update 2007-02-08 14:55:30 +00:00
Makefile Merge branch 'fixes' into devel 2007-05-12 16:12:12 +01:00
Makefile.boot
pm.c PM: introduce set_target method in pm_ops 2007-07-01 12:29:44 -07:00