zaurus c3000 aka spitz: fix resume (fwd)
Subsystems (3)
Maillist rejected it, reposting...
(Could we get slightly higher limit on #of recipients for lakml?)
Pavel
----- Forwarded message from Pavel Machek <[email protected]> -----
From: Pavel Machek <[email protected]>
To: rpurdie at rpsys.net, lenz at cs.wisc.edu,
kernel list <[email protected]>, Dirk at Opfer-Online.de, arminlitzel at web.de, Cyril Hrubis <[email protected]>, thommycheck at gmail.com,
linux-arm-kernel <[email protected]>, dbaryshkov at gmail.com, omegamoon at gmail.com, eric.miao at marvell.com, utx at penguin.cz, Russell King <[email protected]>
Subject: zaurus c3000 aka spitz: fix resume
sharpsl_pm.c code tries to read battery state very early during resume, but those battery meters are connected on SPI and that's only resumed way later.
Replace the check with simple checking of battery fatal signal, that actually works at this stage.
arch/arm/mach-pxa/sharpsl_pm.c renamed from arch/arm.ofic/mach-pxa/sharpsl_pm.c +2 -2
@@ -678,8 +678,8 @@dev_dbg (sharpsl_pm.dev,"User triggered wakeup in offline charger.\n" ); } -if ((!sharpsl_pm.machinfo->read_devdata (SHARPSL_STATUS_LOCK )) || (sharpsl_fatal_check () <0 ) ) - { +if ((!sharpsl_pm.machinfo->read_devdata (SHARPSL_STATUS_LOCK )) || + (!sharpsl_pm.machinfo->read_devdata (SHARPSL_STATUS_FATAL ))) {dev_err (sharpsl_pm.dev,"Fatal condition. Suspend.\n" );corgi_goto_sleep (alarm_time, alarm_enable, state);return 1 ;
Signature · 8 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ----- End forwarded message ----- -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 1 line · Pavel Machek
Maillist rejected it, reposting...
No, the mail list did _not_ reject it. It just asked a human to look at it first.
Quoted 1 line
(Could we get slightly higher limit on #of recipients for lakml?)
Done.
Signature · 1 line
dwmw2