summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.26/1127-gta01-gps-power-state-resume-preserve.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-13 01:54:56 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-13 01:54:56 +0000
commitc931b21161bf3d8a8cab193045b7deb52f914fb2 (patch)
tree6f4c70017b90c8dddb4845ce8a363d61268e016d /target/linux/s3c24xx/patches-2.6.26/1127-gta01-gps-power-state-resume-preserve.patch.patch
parent738e5ca558af0a32073576d9a361d0b5e6383e8e (diff)
downloadmtk-20170518-c931b21161bf3d8a8cab193045b7deb52f914fb2.zip
mtk-20170518-c931b21161bf3d8a8cab193045b7deb52f914fb2.tar.gz
mtk-20170518-c931b21161bf3d8a8cab193045b7deb52f914fb2.tar.bz2
change prefix for kernelpatchbase 2.6.26
SVN-Revision: 13619
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/1127-gta01-gps-power-state-resume-preserve.patch.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches-2.6.26/1127-gta01-gps-power-state-resume-preserve.patch.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/1127-gta01-gps-power-state-resume-preserve.patch.patch b/target/linux/s3c24xx/patches-2.6.26/1127-gta01-gps-power-state-resume-preserve.patch.patch
new file mode 100755
index 0000000..7c2cf23
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.26/1127-gta01-gps-power-state-resume-preserve.patch.patch
@@ -0,0 +1,34 @@
+From 6c1ea4a051c3dad94de37fe766388ac0a81eb22c Mon Sep 17 00:00:00 2001
+From: Mike Westerhof <mwester@dls.net>
+Date: Fri, 25 Jul 2008 23:06:06 +0100
+Subject: [PATCH] gta01-gps-power-state-resume-preserve.patch
+
+Created an attachment (id=593) / from BZ#79
+Updated patch to preserve the power state of the GPS on the GTA01
+
+Currently the GPS is powered up after a suspend/resume occurs. This patch will
+only power the GPS back up if it was powered up when the GTA01 suspended.
+
+Signed-off-by: Mike Westerhof <mwester@dls.net>
+---
+ arch/arm/plat-s3c24xx/neo1973_pm_gps.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
+index d020f8d..9c6adfa 100644
+--- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
++++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
+@@ -514,8 +514,8 @@ static int gta01_pm_gps_resume(struct platform_device *pdev)
+ {
+ #ifdef CONFIG_MACH_NEO1973_GTA01
+ if (machine_is_neo1973_gta01()) {
+- /* FIXME */
+- gps_power_sequence_up();
++ if (neo1973_gps.power_was_on)
++ gps_power_sequence_up();
+ }
+ #endif /* CONFIG_MACH_NEO1973_GTA01 */
+
+--
+1.5.6.3
+