diff options
author | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:27:05 -0600 |
---|---|---|
committer | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:27:05 -0600 |
commit | c75985a7796a43a75f002f310f13b23730757b4f (patch) | |
tree | 7e893226b6de513b682c886dcdc93706649cef30 | |
parent | dab791258cfcb001b01f96053d53faa1a5a52ced (diff) |
Bugzilla 803 - Fix Suspend to RAM
Patch for Bugzilla 803 - Fix Suspend to RAM on linux 2.6.22 kernel
for MX platforms.
pm_ops needs a .valid hook. For these i.MX platforms, use
pm_valid_only_mem(), so that "echo mem > /sys/power/state" will work.
However, resume isn't working (yet).
http://www.bitshrine.org/gpp/linux-2.6.22-mx-Bugzilla-803-Fix-Suspend-to-RAM.patch
-rw-r--r-- | arch/arm/mach-mx27/pm.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-mx3/pm.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx27/pm.c b/arch/arm/mach-mx27/pm.c index 5fd5ecd5d883..2ba385cdd49d 100644 --- a/arch/arm/mach-mx27/pm.c +++ b/arch/arm/mach-mx27/pm.c @@ -92,6 +92,7 @@ struct pm_ops mx27_pm_ops = { .prepare = mx27_pm_prepare, .enter = mx27_pm_enter, .finish = mx27_pm_finish, + .valid = pm_valid_only_mem, }; static int __init mx27_pm_init(void) diff --git a/arch/arm/mach-mx3/pm.c b/arch/arm/mach-mx3/pm.c index e617fc2f835e..e87bc0f6da75 100644 --- a/arch/arm/mach-mx3/pm.c +++ b/arch/arm/mach-mx3/pm.c @@ -99,6 +99,7 @@ struct pm_ops mx31_pm_ops = { .prepare = mx31_pm_prepare, .enter = mx31_pm_enter, .finish = mx31_pm_finish, + .valid = pm_valid_only_mem, }; static int __init mx31_pm_init(void) |