Date:2011-02-14 02:30:51 (8 years 5 months ago)
Author:Lars C.
Commit:fdcac172482f679852551586576a67d374788666
Message:Restore sdio fix for the spectec wlan card

Files: target/linux/generic-2.6/patches-2.6.32/860-sdio-v1_10-no-enable-timeout-val.patch (1 diff)

Change Details

target/linux/generic-2.6/patches-2.6.32/860-sdio-v1_10-no-enable-timeout-val.patch
1--- a/drivers/mmc/core/sdio_cis.c 2010-01-05 03:36:51.000000000 +0100
2@@ -123,14 +123,14 @@
3     vsn = func->card->cccr.sdio_vsn;
4     min_size = (vsn == SDIO_SDIO_REV_1_00) ? 28 : 42;
5
6- if (size < min_size || buf[0] != 1)
7+ if (buf[0] != 1)
8         return -EINVAL;
9
10     /* TPLFE_MAX_BLK_SIZE */
11     func->max_blksize = buf[12] | (buf[13] << 8);
12
13     /* TPLFE_ENABLE_TIMEOUT_VAL, present in ver 1.1 and above */
14- if (vsn > SDIO_SDIO_REV_1_00)
15+ if (vsn > SDIO_SDIO_REV_1_00 && size >= min_size)
16         func->enable_timeout = (buf[28] | (buf[29] << 8)) * 10;
17     else
18         func->enable_timeout = jiffies_to_msecs(HZ);

Archive Download the corresponding diff file



interactive