]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: Add a timeout for sending CMD11
authorDoug Anderson <dianders@chromium.org>
Mon, 9 Mar 2015 23:18:21 +0000 (16:18 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 31 Mar 2015 14:50:43 +0000 (16:50 +0200)
commitd4475568f1b48f37d4e906aa42d71a9c7387de6f
tree0dd8f9bbc1aaa9690fa8f8257d79a6d586b4d785
parent8cbc9d8631af192200f9b127ec1450f741f67e92
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>
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h