Bugzilla 803 - Fix Suspend to RAM
authorQuinn Jensen <quinn.jensen@freescale.com>
Thu, 25 Oct 2007 03:27:05 +0000 (21:27 -0600)
committerQuinn Jensen <quinn.jensen@freescale.com>
Thu, 25 Oct 2007 03:27:05 +0000 (21:27 -0600)
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

arch/arm/mach-mx27/pm.c
arch/arm/mach-mx3/pm.c

index 5fd5ecd5d883d6f5fc26001053b1ee404900b3c5..2ba385cdd49da017bffe7340732fdfc25cbd6f5b 100644 (file)
@@ -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)
index e617fc2f835e5d6b17eebe623012fde1687b56cd..e87bc0f6da75b100c5dbdecd4b12baf2fff05d45 100644 (file)
@@ -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)