packages: enable AP mode on r8188eu
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 170-3-mmc-dont-set-mmc_clk-in-lowpower.patch
1 From 0a6ec6db90c73b037428bf3a94a6281754007c25 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Mon, 17 Feb 2014 16:55:54 +0100
4 Subject: [PATCH] sunxi-mmc: Don't set mmc clk in low power mode
5
6 The android driver uses an io-flag to descern whether a controller is
7 hooked up to a sdcard slot, or to an onboard sdio dev. And for sdcard slots
8 it sets the clock in a low-power mode.
9
10 This is causing transmission errors when talking to the sdio-wifi on the
11 cubietruck, and this may be the cause of problems with some type sdcards
12 too. This patch fixes things by simply never setting the clk in low power
13 mode.
14
15 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
16 ---
17 drivers/mmc/host/sunxi-mmc.c | 3 ---
18 drivers/mmc/host/sunxi-mmc.h | 1 -
19 2 files changed, 4 deletions(-)
20
21 diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
22 index f4bfaf0..c1a9d8a 100644
23 --- a/drivers/mmc/host/sunxi-mmc.c
24 +++ b/drivers/mmc/host/sunxi-mmc.c
25 @@ -400,9 +400,6 @@ static void sunxi_mmc_oclk_onoff(struct sunxi_mmc_host *host, u32 oclk_en)
26 if (oclk_en)
27 rval |= SDXC_CARD_CLOCK_ON;
28
29 - if (!host->io_flag)
30 - rval |= SDXC_LOW_POWER_ON;
31 -
32 mci_writel(host, REG_CLKCR, rval);
33
34 rval = SDXC_START | SDXC_UPCLK_ONLY | SDXC_WAIT_PRE_OVER;
35 diff --git a/drivers/mmc/host/sunxi-mmc.h b/drivers/mmc/host/sunxi-mmc.h
36 index cbd6d49..a738850 100644
37 --- a/drivers/mmc/host/sunxi-mmc.h
38 +++ b/drivers/mmc/host/sunxi-mmc.h
39 @@ -211,7 +211,6 @@ struct sunxi_mmc_host {
40
41 /* flags */
42 u32 power_on:1;
43 - u32 io_flag:1;
44 u32 wait_dma:1;
45
46 dma_addr_t sg_dma;
47 --
48 1.8.5.5
49