summaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1238-fix-scard-stop-on-resume.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
commit614683faf8029100802db06a825648d0b6490285 (patch)
tree7401b135dc7ce24ff0175e67e0f2ce7f96296ff0 /target/linux/s3c24xx/patches-2.6.24/1238-fix-scard-stop-on-resume.patch.patch
parent4a018d2445c5f249179ff82c8fffb0e3b717f738 (diff)
downloadmaster-31e0f0ae-614683faf8029100802db06a825648d0b6490285.tar.gz
master-31e0f0ae-614683faf8029100802db06a825648d0b6490285.tar.bz2
master-31e0f0ae-614683faf8029100802db06a825648d0b6490285.zip
changed Makefile and profiles, added patches for kernel 2.6.24 (stable-branch of Openmoko)
SVN-Revision: 13613
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1238-fix-scard-stop-on-resume.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1238-fix-scard-stop-on-resume.patch.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1238-fix-scard-stop-on-resume.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1238-fix-scard-stop-on-resume.patch.patch
new file mode 100644
index 0000000000..1ec34d8e0b
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1238-fix-scard-stop-on-resume.patch.patch
@@ -0,0 +1,51 @@
+From 6ec7d69f08cfb772fdf5d7c55ed9da2273677a4d Mon Sep 17 00:00:00 2001
+From: Andy Green <andy@openmoko.com>
+Date: Sun, 20 Jul 2008 18:43:15 +0100
+Subject: [PATCH] fix-scard-stop-on-resume.patch
+ Reported-by: Ville-Pekka Vainio <vpivaini@cs.helsinki.fi>
+
+The reporter noticed SD Card clock is running again after resume. After
+looking at the code I saw I missed two tricks, this will force it off
+after resume and will do better generally depending on what the last SD Card
+packet was.
+
+Since bulk read packet is normally last action (which set the clock off even
+without this) the old patch worked for normal cases. But after resume, the last
+packet on the wire was not a bulk transfer and we didn't take care about the
+clock then.
+
+Signed-off-by: Andy Green <andy@openmoko.com>
+---
+ drivers/mfd/glamo/glamo-mci.c | 6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/mfd/glamo/glamo-mci.c b/drivers/mfd/glamo/glamo-mci.c
+index 6729244..2318e6f 100644
+--- a/drivers/mfd/glamo/glamo-mci.c
++++ b/drivers/mfd/glamo/glamo-mci.c
+@@ -619,12 +619,9 @@ done:
+ host->complete_what = COMPLETION_NONE;
+ host->mrq = NULL;
+ mmc_request_done(host->mmc, cmd->mrq);
+- return;
+-
+ bail:
+ /* stop the clock to card */
+ __glamo_mci_fix_card_div(host, -1);
+- return;
+ }
+
+ static void glamo_mci_request(struct mmc_host *mmc, struct mmc_request *mrq)
+@@ -690,6 +687,9 @@ 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;
+
++ /* stop the clock to card, because we are idle until transfer */
++ __glamo_mci_fix_card_div(host, -1);
++
+ if ((ios->power_mode == MMC_POWER_ON) ||
+ (ios->power_mode == MMC_POWER_UP)) {
+ dev_info(&host->pdev->dev,
+--
+1.5.6.5
+