From 4942fd2b79ec3398db485d7c994ae45dc1a9c85f Mon Sep 17 00:00:00 2001 From: juhosg Date: Wed, 9 May 2012 11:38:36 +0000 Subject: kirkwood: add 3.3 support Based on the 3.2.9 patches by Luka Perkov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31664 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../kirkwood/patches-3.3/002-mvsdio_delay.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 target/linux/kirkwood/patches-3.3/002-mvsdio_delay.patch (limited to 'target/linux/kirkwood/patches-3.3/002-mvsdio_delay.patch') diff --git a/target/linux/kirkwood/patches-3.3/002-mvsdio_delay.patch b/target/linux/kirkwood/patches-3.3/002-mvsdio_delay.patch new file mode 100644 index 000000000..46e2a5646 --- /dev/null +++ b/target/linux/kirkwood/patches-3.3/002-mvsdio_delay.patch @@ -0,0 +1,32 @@ +--- a/drivers/mmc/core/sd.c ++++ b/drivers/mmc/core/sd.c +@@ -389,6 +389,15 @@ int mmc_sd_switch_hs(struct mmc_card *ca + return -ENOMEM; + } + ++ /* ++ * Some SDHC cards, notably those with a Sandisk SD controller ++ * (also found in Kingston products) need a bit of slack ++ * before successfully handling the SWITCH command. So far, ++ * cards identifying themselves as "SD04G" and "SD08G" are ++ * affected ++ */ ++ udelay(1000); ++ + err = mmc_sd_switch(card, 1, 0, 1, status); + if (err) + goto out; +--- a/drivers/mmc/core/core.c ++++ b/drivers/mmc/core/core.c +@@ -529,9 +529,9 @@ void mmc_set_data_timeout(struct mmc_dat + * The limit is really 250 ms, but that is + * insufficient for some crappy cards. + */ +- limit_us = 300000; ++ limit_us = 500000; + else +- limit_us = 100000; ++ limit_us = 200000; + + /* + * SDHC cards always use these fixed values. -- cgit v1.2.3