lkml.org 
[lkml]   [2009]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectzaurus suspend saga: 2.6.32-rc3
Hi!

I'm using patch similar to this for debugging:

...and good news is that it blinks after pressing of power button.

...core > pm_test also works.

I also verified that end of pxa_pm_enter() is reached (with similar
blinking patch). End of corgi_pxa_pm_enter() seems to be reached, too.

Any ideas what to try next?
Pavel

--- arm.ofic//mach-pxa/pm.c 2009-09-10 00:13:59.000000000 +0200
+++ arm/mach-pxa/pm.c 2009-10-07 14:21:21.000000000 +0200
@@ -14,7 +14,10 @@
#include <linux/module.h>
#include <linux/suspend.h>
#include <linux/errno.h>
+#include <linux/gpio.h>
+#include <linux/delay.h>

+#include <mach/spitz.h>
#include <mach/pm.h>

struct pxa_cpu_pm_fns *pxa_cpu_pm_fns;
@@ -41,6 +44,24 @@

/* *** go zzz *** */
pxa_cpu_pm_fns->enter(state);
+
+ gpio_set_value(SPITZ_GPIO_LED_GREEN, 0);
+ mdelay(100);
+ gpio_set_value(SPITZ_GPIO_LED_GREEN, 1);
+ mdelay(100);
+ gpio_set_value(SPITZ_GPIO_LED_GREEN, 0);
+ mdelay(100);
+ gpio_set_value(SPITZ_GPIO_LED_GREEN, 1);
+ mdelay(100);
+ gpio_set_value(SPITZ_GPIO_LED_GREEN, 0);
+ mdelay(100);
+ gpio_set_value(SPITZ_GPIO_LED_GREEN, 1);
+ mdelay(100);
+ gpio_set_value(SPITZ_GPIO_LED_GREEN, 0);
+ mdelay(100);
+ gpio_set_value(SPITZ_GPIO_LED_GREEN, 1);
+ mdelay(100);
+
cpu_init();

if (state != PM_SUSPEND_STANDBY) {
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2009-10-11 11:15    [W:0.043 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site