summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorDoug Anderson2015-03-10 00:18:21 +0100
committerUlf Hansson2015-03-31 16:50:43 +0200
commit5c935165da79644df90a647ecc140fb77b40dee5 (patch)
tree0dd8f9bbc1aaa9690fa8f8257d79a6d586b4d785 /include/linux/mmc
parentmmc: dw_mmc: enable card read threshold when mode is HS400 (diff)
downloadkernel-qcow2-linux-5c935165da79644df90a647ecc140fb77b40dee5.tar.gz
kernel-qcow2-linux-5c935165da79644df90a647ecc140fb77b40dee5.tar.xz
kernel-qcow2-linux-5c935165da79644df90a647ecc140fb77b40dee5.zip
mmc: dw_mmc: Add a timeout for sending CMD11
In the Designware databook's description of the "Voltage Switch Normal Scenario" it instructs us to set a timer and fail the voltage change if we don't see the voltage change interrupt within 2ms. Let's implement that. Without implementing this I have often been able to reproduce a hang while trying to send CMD11 on an rk3288-based board while constantly ejecting and inserting UHS cards. Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/dw_mmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/dw_mmc.h b/include/linux/mmc/dw_mmc.h
index 471fb3116dbe..9efc567e3ced 100644
--- a/include/linux/mmc/dw_mmc.h
+++ b/include/linux/mmc/dw_mmc.h
@@ -202,6 +202,8 @@ struct dw_mci {
int irq;
int sdio_id0;
+
+ struct timer_list cmd11_timer;
};
/* DMA ops for Internal/External DMAC interface */