Date:2011-05-15 10:20:29 (12 years 10 months ago)
Author:kyak
Commit:06a3076b4996565b764007cc407251911aeef18f
Message:trunk: add ks7010 support patch

Files: target/linux/xburst/patches-2.6.37/850-ks7010-support.patch (1 diff)

Change Details

target/linux/xburst/patches-2.6.37/850-ks7010-support.patch
1--- a/drivers/mmc/core/core.c
2@@ -922,7 +922,7 @@ static void mmc_power_up(struct mmc_host
3      * This delay should be sufficient to allow the power supply
4      * to reach the minimum voltage.
5      */
6- mmc_delay(10);
7+ mmc_delay(200);
8
9     host->ios.clock = host->f_init;
10
11@@ -933,7 +933,7 @@ static void mmc_power_up(struct mmc_host
12      * This delay must be at least 74 clock sizes, or 1 ms, or the
13      * time required to reach a stable voltage.
14      */
15- mmc_delay(10);
16+ mmc_delay(200);
17 }
18
19 static void mmc_power_off(struct mmc_host *host)
20--- a/drivers/mmc/core/sdio_cis.c
21@@ -156,7 +156,8 @@ static int cistpl_funce_common(struct mm
22     /* TPLFE_MAX_TRAN_SPEED */
23     card->cis.max_dtr = speed_val[(buf[3] >> 3) & 15] *
24                 speed_unit[buf[3] & 7];
25-
26+ if(card->cis.max_dtr > 25000000 && card->cccr.sdio_vsn < SDIO_SDIO_REV_2_00)
27+ card->cis.max_dtr = 25000000;
28     return 0;
29 }
30
31@@ -177,14 +178,14 @@ static int cistpl_funce_func(struct mmc_
32     vsn = func->card->cccr.sdio_vsn;
33     min_size = (vsn == SDIO_SDIO_REV_1_00) ? 28 : 42;
34
35- if (size < min_size)
36+ if (buf[0] != 1)
37         return -EINVAL;
38
39     /* TPLFE_MAX_BLK_SIZE */
40     func->max_blksize = buf[12] | (buf[13] << 8);
41
42     /* TPLFE_ENABLE_TIMEOUT_VAL, present in ver 1.1 and above */
43- if (vsn > SDIO_SDIO_REV_1_00)
44+ if (vsn > SDIO_SDIO_REV_1_00 && size >= min_size)
45         func->enable_timeout = (buf[28] | (buf[29] << 8)) * 10;
46     else
47         func->enable_timeout = jiffies_to_msecs(HZ);

Archive Download the corresponding diff file



interactive