changed Makefile and profiles, added patches for kernel 2.6.24
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1249-fix-glamo-mci-dont-filter-voltage-change.patch.patch
1 From 792fb6dd55c282de25005a1399ffaa084ece4b1c Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Wed, 30 Jul 2008 12:46:34 +0100
4 Subject: [PATCH] fix-glamo-mci-dont-filter-voltage-change.patch
5
6 Signed-off-by: Andy Green <andy@openmoko.com>
7 ---
8  drivers/mfd/glamo/glamo-mci.c |   11 +++++------
9  1 files changed, 5 insertions(+), 6 deletions(-)
10
11 diff --git a/drivers/mfd/glamo/glamo-mci.c b/drivers/mfd/glamo/glamo-mci.c
12 index c2351e2..54ba613 100644
13 --- a/drivers/mfd/glamo/glamo-mci.c
14 +++ b/drivers/mfd/glamo/glamo-mci.c
15 @@ -690,17 +690,16 @@ static void glamo_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
16         switch(ios->power_mode) {
17         case MMC_POWER_ON:
18         case MMC_POWER_UP:
19 -               if (host->power_mode_current != MMC_POWER_OFF)
20 -                       break;
21                 if (host->vdd_current != ios->vdd) {
22                         host->pdata->glamo_set_mci_power(ios->power_mode,
23                                                          ios->vdd);
24                         host->vdd_current = ios->vdd;
25                 }
26 -               glamo_engine_enable(glamo_mci_def_pdata.pglamo,
27 -                                                       GLAMO_ENGINE_MMC);
28 -               glamo_mci_reset(host);
29 -               powering = 1;
30 +               if (host->power_mode_current == MMC_POWER_OFF) {
31 +                       glamo_engine_enable(glamo_mci_def_pdata.pglamo,
32 +                                                             GLAMO_ENGINE_MMC);
33 +                       powering = 1;
34 +               }
35                 break;
36  
37         case MMC_POWER_OFF:
38 -- 
39 1.5.6.5
40