[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, andy-tracking, updated. upstream/20090303.gitb9de904e-144-gd7ac922

Nelson Castillo arhuaco at freaks-unidos.net
Thu Jun 11 09:54:55 UTC 2009


The following commit has been merged in the andy-tracking branch:
commit 6e7fee4b8ed7a8669d5e4eaa492e8c6cb6105de6
Author: Paul Fertser <fercerpav at gmail.com>
Date:   Fri Jun 5 11:11:04 2009 +0400

    GTA02: gps power management bugfix
    
    After suspending with GPS powered on power_on sysfs node reports 0 and GPS
    is actually unpowered but "echo 1 > power_on" has no effect. This patch
    fixes it.
    
    Reported and analised by Timo Juhani Lindfors <timo.lindfors at iki.fi>,
    ticket #2293.
    
    Signed-off-by: Paul Fertser <fercerpav at gmail.com>

diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
index 93b4911..b59d495 100644
--- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
+++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
@@ -305,7 +305,8 @@ static void gps_pwron_set(int on)
 			/* remove pulldown now it won't be floating any more */
 			s3c2410_gpio_pullup(S3C2410_GPH5, 0);
 
-			if (!neo1973_gps.power_was_on)
+			if (!regulator_is_enabled(neo1973_gps.regulator[
+							  GTA02_GPS_REG_RF_3V]))
 				regulator_enable(neo1973_gps.regulator[
 							  GTA02_GPS_REG_RF_3V]);
 			return;

-- 
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko



More information about the pkg-fso-commits mailing list