zaurus 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
mach-pxa/pm.c renamed from /mach-pxa/pm.c +21 -0
@@ -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 ) {
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 6 lines · Pavel Machek
Hi!
I'm using patch similar to this for debugging:
...and good news is that it blinks after pressing of power button.
Quoted 7 lines
...core >
pm_testalso works.I also verified that end of
pxa_pm_enter()is reached (with similar blinking patch). End ofcorgi_pxa_pm_enter()seems to be reached, too.Any ideas what to try next?
Pavel
For the Mitac MIO A701 board, with a similar problem, I had :
- removed almost all drivers (except screen and USB for control)
- realized that the culprit was amongst drivers (which resumed in a loop in that time, should be the same now)
- added some way to find which one failed (in my case, I chose morse code through the buzzer to "speak" the device's name)
- found out the driver faulty code
- fixed it
- retried, cheered.
As soon as you reach a resumed screen, it becomes easier :)
That's a very tedious and long fight, good luck.
Cheers
--
Robert
Quoted 13 lines · Robert Jarzmik
Quoted 11 lines · Pavel Machek
Hi!
I'm using patch similar to this for debugging:
...and good news is that it blinks after pressing of power button.
...core >
pm_testalso works.I also verified that end of
pxa_pm_enter()is reached (with similar blinking patch). End ofcorgi_pxa_pm_enter()seems to be reached, too.
Quoted 6 lines
Quoted 1 line
Any ideas what to try next?
For the Mitac MIO A701 board, with a similar problem, I had :
- removed almost all drivers (except screen and USB for control)
- realized that the culprit was amongst drivers (which resumed in a loop in that time, should be the same now)
Seems like it is not that simple here;
suspend_enter():
if (!error) {
if (!suspend_test(TEST_CORE))
error = suspend_ops->enter(state);
sysdev_resume();
}[it reaches this point]
arch_suspend_enable_irqs(); [but not this one] BUG_ON(irqs_disabled());
Enable_cpus:
enable_nonboot_cpus();
Do I have screaming irq or something?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html