From: Pavel Machek <pavel@ucw.cz>
To: rpurdie@rpsys.net, lenz@cs.wisc.edu,
kernel list <linux-kernel@vger.kernel.org>,
Dirk@Opfer-Online.de, arminlitzel@web.de,
Cyril Hrubis <metan@ucw.cz>,
thommycheck@gmail.com,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
dbaryshkov@gmail.com, omegamoon@gmail.com, eric.y.miao@gmail.com,
utx@penguin.cz
Subject: zaurus suspend saga: 2.6.32-rc3
Date: Sun, 11 Oct 2009 11:04:23 +0200 [thread overview]
Message-ID: <20091011090423.GB1414@ucw.cz> (raw)
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
next reply other threads:[~2009-10-11 9:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-11 9:04 Pavel Machek [this message]
2009-10-11 15:59 ` zaurus suspend saga: 2.6.32-rc3 Robert Jarzmik
2009-10-12 7:14 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091011090423.GB1414@ucw.cz \
--to=pavel@ucw.cz \
--cc=Dirk@Opfer-Online.de \
--cc=arminlitzel@web.de \
--cc=dbaryshkov@gmail.com \
--cc=eric.y.miao@gmail.com \
--cc=lenz@cs.wisc.edu \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=metan@ucw.cz \
--cc=omegamoon@gmail.com \
--cc=rpurdie@rpsys.net \
--cc=thommycheck@gmail.com \
--cc=utx@penguin.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox