linux/arch/arm
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
..
boot [ARM] 4449/1: more entries in arch/arm/boot/.gitignore 2007-06-25 20:37:35 +01:00
common [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
configs [ARM] 4333/2: KS8695: Micrel Development board 2007-05-11 22:02:55 +01:00
kernel Introduce fixed sys_sync_file_range2() syscall, implement on PowerPC and ARM 2007-06-28 11:38:30 -07:00
lib [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-aaec2000 Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
mach-at91 PM: introduce set_target method in pm_ops 2007-07-01 12:29:44 -07:00
mach-clps711x Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
mach-clps7500 Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
mach-davinci [ARM] 4303/3: base kernel support for TI DaVinci 2007-05-11 17:26:55 +01:00
mach-ebsa110 [ARM] EBSA110: fix build errors caused by missing "const" 2007-05-11 17:20:02 +01:00
mach-ep93xx Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
mach-footbridge [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-h720x [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-imx [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-integrator [ARM] integrator: fix pci_v3 compile error with DEBUG_LL 2007-05-17 10:16:55 +01:00
mach-iop13xx Merge master.kernel.org:/home/rmk/linux-2.6-arm 2007-05-21 10:00:22 -07:00
mach-iop32x [ARM] 4383/1: iop: fix usage of '__init' and 'inline' in iop files 2007-05-16 15:35:27 +01:00
mach-iop33x [ARM] 4383/1: iop: fix usage of '__init' and 'inline' in iop files 2007-05-16 15:35:27 +01:00
mach-ixp4xx [ARM] 4410/1: Remove extern declarations in coyote/ixdpg425-pci.c 2007-05-30 13:15:39 +01:00
mach-ixp23xx [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-ixp2000 [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-ks8695 [ARM] 4333/2: KS8695: Micrel Development board 2007-05-11 22:02:55 +01:00
mach-l7200
mach-lh7a40x [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-netx Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
mach-ns9xxx [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-omap1 [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-omap2 [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-pnx4008 [ARM] Spinlock initializer cleanup 2007-05-11 17:38:04 +01:00
mach-pxa [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-realview [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
mach-rpc [ARM] Add platform support for PATA on RiscPC 2007-05-03 14:16:55 +01:00
mach-s3c2400 [ARM] 4157/2: S3C24XX: move arch/arch/mach-s3c2410 into cpu components 2007-02-11 17:36:09 +00:00
mach-s3c2410 [ARM] 4415/1: AML5900: fix sparse warnings from map_io 2007-05-30 13:15:30 +01:00
mach-s3c2412 [ARM] 4412/1: S3C2412: reset errata fix 2007-05-30 13:15:23 +01:00
mach-s3c2440 [ARM] 4445/1: ANUBIS: Fix CPLD registers 2007-06-11 09:09:34 +01:00
mach-s3c2442 [ARM] 4157/2: S3C24XX: move arch/arch/mach-s3c2410 into cpu components 2007-02-11 17:36:09 +00:00
mach-s3c2443 [ARM] 4414/1: S3C2443: sparse fix for clock.c 2007-05-30 13:15:26 +01:00
mach-sa1100 [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
mach-shark Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
mach-versatile Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
mm parse errors in ifdefs 2007-06-01 08:18:28 -07:00
nwfpe [ARM] 4416/1: NWFPE: fix undeclared symbols 2007-05-30 13:15:34 +01:00
oprofile [ARM] Solve buggy smp_processor_id() usage 2007-06-02 21:31:49 +01:00
plat-iop Merge master.kernel.org:/home/rmk/linux-2.6-arm 2007-05-21 10:00:22 -07:00
plat-omap [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
plat-s3c24xx [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
tools [ARM] Update mach-types 2007-05-11 19:54:39 +01:00
vfp [ARM] VFP: fix section mismatch error 2007-06-10 12:22:20 +01:00
Kconfig [ARM] 4376/1: Selects GENERIC_GPIO for ARCH_IXP4XX in Kconfig 2007-05-16 15:35:25 +01:00
Kconfig-nommu
Kconfig.debug
Makefile [ARM] 4331/3: Support for Micrel/Kendin KS8695 processor 2007-05-11 22:02:48 +01:00