Commit 5c93516
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>1 parent 488b8d6 commit 5c93516
2 files changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1024 | 1033 | | |
1025 | 1034 | | |
1026 | 1035 | | |
| |||
2159 | 2168 | | |
2160 | 2169 | | |
2161 | 2170 | | |
| 2171 | + | |
| 2172 | + | |
2162 | 2173 | | |
2163 | 2174 | | |
2164 | 2175 | | |
| |||
2572 | 2583 | | |
2573 | 2584 | | |
2574 | 2585 | | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
2575 | 2598 | | |
2576 | 2599 | | |
2577 | 2600 | | |
| |||
2746 | 2769 | | |
2747 | 2770 | | |
2748 | 2771 | | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
2749 | 2775 | | |
2750 | 2776 | | |
2751 | 2777 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| |||
0 commit comments