summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood/patches/002-mvsdio_delay.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2012-06-05 00:43:56 +0000
committerLuka Perkov <luka@openwrt.org>2012-06-05 00:43:56 +0000
commit605012ad5d540dabd2d3f843e1e2a8d61241c724 (patch)
tree9ab0bfddc9761a24bb62249be9c98af6c3636c2b /target/linux/kirkwood/patches/002-mvsdio_delay.patch
parentdc9e7207396bdb7cab49a6f58c1f7c8a28139a53 (diff)
downloadmtk-20170518-605012ad5d540dabd2d3f843e1e2a8d61241c724.zip
mtk-20170518-605012ad5d540dabd2d3f843e1e2a8d61241c724.tar.gz
mtk-20170518-605012ad5d540dabd2d3f843e1e2a8d61241c724.tar.bz2
kirkwood: reorganize target
SVN-Revision: 32053
Diffstat (limited to 'target/linux/kirkwood/patches/002-mvsdio_delay.patch')
-rw-r--r--target/linux/kirkwood/patches/002-mvsdio_delay.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/target/linux/kirkwood/patches/002-mvsdio_delay.patch b/target/linux/kirkwood/patches/002-mvsdio_delay.patch
new file mode 100644
index 0000000..46e2a56
--- /dev/null
+++ b/target/linux/kirkwood/patches/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.