[ar71xx] fix GPIO function select bit definitions (based on a patch by Jonas <jmajau...
[openwrt.git] / target / linux / s3c24xx / patches-2.6.26 / 1127-gta01-gps-power-state-resume-preserve.patch.patch
1 From 6c1ea4a051c3dad94de37fe766388ac0a81eb22c Mon Sep 17 00:00:00 2001
2 From: Mike Westerhof <mwester@dls.net>
3 Date: Fri, 25 Jul 2008 23:06:06 +0100
4 Subject: [PATCH] gta01-gps-power-state-resume-preserve.patch
5
6 Created an attachment (id=593) / from BZ#79
7 Updated patch to preserve the power state of the GPS on the GTA01
8
9 Currently the GPS is powered up after a suspend/resume occurs. This patch will
10 only power the GPS back up if it was powered up when the GTA01 suspended.
11
12 Signed-off-by: Mike Westerhof <mwester@dls.net>
13 ---
14 arch/arm/plat-s3c24xx/neo1973_pm_gps.c | 4 ++--
15 1 files changed, 2 insertions(+), 2 deletions(-)
16
17 diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
18 index d020f8d..9c6adfa 100644
19 --- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
20 +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
21 @@ -514,8 +514,8 @@ static int gta01_pm_gps_resume(struct platform_device *pdev)
22 {
23 #ifdef CONFIG_MACH_NEO1973_GTA01
24 if (machine_is_neo1973_gta01()) {
25 - /* FIXME */
26 - gps_power_sequence_up();
27 + if (neo1973_gps.power_was_on)
28 + gps_power_sequence_up();
29 }
30 #endif /* CONFIG_MACH_NEO1973_GTA01 */
31
32 --
33 1.5.6.3
34
This page took 0.043129 seconds and 5 git commands to generate.