[ar71xx] create firmware image for the Ubiquiti LS-SR71 board
[openwrt/svn-archive/archive.git] / target / linux / s3c24xx / patches-2.6.26 / 1229-fix-glamo-mci-dont-filter-voltage-change.patch.patch
1 From 8ccb7946041773bb000a0c65cf30bd2392a5815f Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Wed, 30 Jul 2008 14:36:50 +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 0d82955..7a2b060 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.3
40