Skip to contentSkip to conversation

2.6.30 kernel for Zaurus

DISCUSSION Pavel Machek 1 participant 2 messages Jun 24, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Vitaly Minko

Hi Pavel,

I want to upgrade my kernel on Zaurus C1000 to the latest stable version. Do I need any additional patches besides your suspend-related one that you posted here:
http://patchwork.kernel.org/patch/26927/

Well, you'll also need to disable offline charging, and I only tested it on spitz.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#2 lore raw
Quoted 11 lines · Pavel Machek
Quoted 6 lines · Vitaly Minko

Hi Pavel,

I want to upgrade my kernel on Zaurus C1000 to the latest stable version. Do I need any additional patches besides your suspend-related one that you posted here:
http://patchwork.kernel.org/patch/26927/

Well, you'll also need to disable offline charging, and I only tested it on spitz.

Try this...

common/sharpsl_pm.c +4 -1
diff -ur arm.ofic/common/sharpsl_pm.c arm/common/sharpsl_pm.c
@@ -12,7 +12,7 @@
  *
  */
 
-#undef DEBUG
+#define DEBUG
 
 #include <linux/module.h>
 #include <linux/timer.h>
@@ -546,6 +546,9 @@
 
 static int corgi_enter_suspend(unsigned long alarm_time, unsigned int alarm_enable, suspend_state_t state)
 {
+
+  return 0;
+
 	if (!sharpsl_pm.machinfo->should_wakeup(!(sharpsl_pm.flags & SHARPSL_ALARM_ACTIVE) && alarm_enable) )
 	{
 		if (!(sharpsl_pm.flags & SHARPSL_ALARM_ACTIVE)) {
mach-pxa/spitz_pm.c +3 -0
diff -ur arm.ofic/mach-pxa/spitz_pm.c arm/mach-pxa/spitz_pm.c
@@ -124,6 +124,7 @@
 	int is_resume = 0;
 	int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN);
 
+#if 0
 	if (spitz_last_ac_status != acin) {
 		if (acin) {
 			/* charge on */
@@ -141,6 +142,8 @@
 		return 0;
 	}
 
+#endif
+
 	if (PEDR & GPIO_bit(SPITZ_GPIO_KEY_INT))
 		is_resume |= GPIO_bit(SPITZ_GPIO_KEY_INT);
 
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html