summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.26/1224-fix-glamo-mci-ensure-more-than-74-clocks-after-power.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/1224-fix-glamo-mci-ensure-more-than-74-clocks-after-power.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/1224-fix-glamo-mci-ensure-more-than-74-clocks-after-power.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches-2.6.26/1224-fix-glamo-mci-ensure-more-than-74-clocks-after-power.patch52
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/1224-fix-glamo-mci-ensure-more-than-74-clocks-after-power.patch b/target/linux/s3c24xx/patches-2.6.26/1224-fix-glamo-mci-ensure-more-than-74-clocks-after-power.patch
deleted file mode 100755
index 30a8230e2d..0000000000
--- a/target/linux/s3c24xx/patches-2.6.26/1224-fix-glamo-mci-ensure-more-than-74-clocks-after-power.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 2e9349e8be6002955cb0ab6a6ed536f5f8041cba Mon Sep 17 00:00:00 2001
-From: Andy Green <andy@openmoko.com>
-Date: Fri, 25 Jul 2008 23:06:21 +0100
-Subject: [PATCH] fix-glamo-mci-ensure-more-than-74-clocks-after-power.patch
-
-We are meant to run SD_CLK a little while after power-on for the SD
-Card, but with the no idle clock changes we didn't take care about it.
-
-This makes us sleep a little bit before disabling clock if we just
-powered up the SD Card.
-
-Signed-off-by: Andy Green <andy@openmoko.com>
----
- drivers/mfd/glamo/glamo-mci.c | 8 ++++++++
- 1 files changed, 8 insertions(+), 0 deletions(-)
-
-diff --git a/drivers/mfd/glamo/glamo-mci.c b/drivers/mfd/glamo/glamo-mci.c
-index 505be5f..0d82955 100644
---- a/drivers/mfd/glamo/glamo-mci.c
-+++ b/drivers/mfd/glamo/glamo-mci.c
-@@ -684,6 +684,7 @@ static void glamo_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
- struct glamo_mci_host *host = mmc_priv(mmc);
- int n = 0;
- int div;
-+ int powering = 0;
-
- /* Set power */
- switch(ios->power_mode) {
-@@ -699,6 +700,7 @@ static void glamo_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
- glamo_engine_enable(glamo_mci_def_pdata.pglamo,
- GLAMO_ENGINE_MMC);
- glamo_mci_reset(host);
-+ powering = 1;
- break;
-
- case MMC_POWER_OFF:
-@@ -716,6 +718,12 @@ static void glamo_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
- host->real_rate = __glamo_mci_set_card_clock(host, ios->clock, &div);
- host->clk_div = div;
-
-+ /* after power-up, we are meant to give it >= 74 clocks so it can
-+ * initialize itself. Doubt any modern cards need it but anyway...
-+ */
-+ if (powering)
-+ msleep(1);
-+
- if (!sd_idleclk)
- /* stop the clock to card, because we are idle until transfer */
- __glamo_mci_fix_card_div(host, -1);
---
-1.5.6.3
-