summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.26/1162-fix-glamo-mci-power-setting-timeout-waiting-for-pcf5.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-14 15:52:42 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-14 15:52:42 +0000
commit26e3776a22bf894ced5af4c28968dc1dc99968eb (patch)
tree2d38a3789e27a423439c37a45a09cae31990a615 /target/linux/s3c24xx/patches-2.6.26/1162-fix-glamo-mci-power-setting-timeout-waiting-for-pcf5.patch
parent4bd70fc26256cf485f19e0c8b881e078dc36134f (diff)
nuke obsolete kernel stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14875 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/1162-fix-glamo-mci-power-setting-timeout-waiting-for-pcf5.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches-2.6.26/1162-fix-glamo-mci-power-setting-timeout-waiting-for-pcf5.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/1162-fix-glamo-mci-power-setting-timeout-waiting-for-pcf5.patch b/target/linux/s3c24xx/patches-2.6.26/1162-fix-glamo-mci-power-setting-timeout-waiting-for-pcf5.patch
deleted file mode 100755
index 0402bff766..0000000000
--- a/target/linux/s3c24xx/patches-2.6.26/1162-fix-glamo-mci-power-setting-timeout-waiting-for-pcf5.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 98c8ab6ee24e43f1a9fdd941695917b426227b85 Mon Sep 17 00:00:00 2001
-From: Andy Green <andy@openmoko.com>
-Date: Fri, 25 Jul 2008 23:06:12 +0100
-Subject: [PATCH] fix-glamo-mci-power-setting-timeout-waiting-for-pcf50633.patch
-
-Glamo MCI power setting stuff spins on pcf50633
-but it won't hurt if it gives up after a second or
-two instead of stalling the resume silently.
-
-Signed-off-by: Andy Green <andy@openmoko.com>
----
- arch/arm/mach-s3c2440/mach-gta02.c | 11 +++++++++--
- 1 files changed, 9 insertions(+), 2 deletions(-)
-
-diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
-index 5980ea9..69a952a 100644
---- a/arch/arm/mach-s3c2440/mach-gta02.c
-+++ b/arch/arm/mach-s3c2440/mach-gta02.c
-@@ -1265,6 +1265,7 @@ static void
- gta02_glamo_mmc_set_power(unsigned char power_mode, unsigned short vdd)
- {
- int mv = 1650;
-+ int timeout = 100;
-
- printk(KERN_DEBUG "mmc_set_power(power_mode=%u, vdd=%u\n",
- power_mode, vdd);
-@@ -1281,8 +1282,14 @@ gta02_glamo_mmc_set_power(unsigned char power_mode, unsigned short vdd)
- case MMC_POWER_ON:
- case MMC_POWER_UP:
- /* depend on pcf50633 driver init + not suspended */
-- while (pcf50633_ready(pcf50633_global))
-- msleep(1);
-+ while (pcf50633_ready(pcf50633_global) && (timeout--))
-+ msleep(5);
-+
-+ if (!timeout) {
-+ printk(KERN_ERR"gta02_glamo_mmc_set_power "
-+ "BAILING on timeout\n");
-+ return;
-+ }
- /* select and set the voltage */
- if (vdd > 7) {
- mv += 300 + 100 * (vdd - 8);
---
-1.5.6.3
-