summaryrefslogtreecommitdiff
path: root/Documentation/thermal/exynos_thermal
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-01-28 14:15:34 +0100
committerChris Ball <chris@printf.net>2014-02-23 10:40:38 -0500
commitb9ec26160f998493509b782be999ff59e4372971 (patch)
tree06c0af48fe14643e4252a50d153eef81461c5a25 /Documentation/thermal/exynos_thermal
parent636bd13c12d2331ad835b89681428eccb4cf102e (diff)
mmc: core: Fixup busy detection for mmc switch operations
If the host controller supports busy detection in HW, we expect the MMC_CAP_WAIT_WHILE_BUSY to be set. Likewise the corresponding host->max_busy_timeout should reflect the maximum busy detection timeout supported by the host. Previously we expected a host that supported MMC_CAP_WAIT_WHILE_BUSY to cope with any timeout, which just isn't feasible due to HW limitations. For most switch operations, R1B responses are expected and thus we need to check for busy detection completion. To cope with cases where the requested busy detection timeout is greater than what the host are able to support, we fallback to use a R1 response instead. This will prevent the host from doing HW busy detection. In those cases, busy detection completion is handled by polling the for the card's status using CMD13. This is the same mechanism used when the host doesn't support MMC_CAP_WAIT_WHILE_BUSY. Do note, a host->max_busy_timeout set to zero, is interpreted by the mmc core as it don't know what the host supports. It will then provide the host with whatever timeout the mmc core finds suitable. For some cases the mmc core has unfurtunate no clue of what timeout to use. In these cases we provide the host with a timeout value of zero, which the host may interpret as use whatever timeout it finds suitable. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'Documentation/thermal/exynos_thermal')
0 files changed, 0 insertions, 0 deletions