[PATCH] GTA02: gps power management bugfix

Nelson Castillo arhuaco at freaks-unidos.net
Tue Jun 9 13:15:49 CEST 2009


On Fri, Jun 5, 2009 at 4:11 AM, Paul Fertser<fercerpav at gmail.com> wrote:
> 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>
> ---
>  arch/arm/plat-s3c24xx/neo1973_pm_gps.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
> index 93b4911..038a865 100644
> --- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
> +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
> @@ -305,7 +305,7 @@ 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]))

Hello Paul.

Line over 80 chars. Fixed and sent.

N.-



More information about the openmoko-kernel mailing list