]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Respect host's max_busy_timeout when sending sleep cmd
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Jan 2014 22:17:36 +0000 (23:17 +0100)
committerChris Ball <chris@printf.net>
Sun, 23 Feb 2014 15:40:49 +0000 (10:40 -0500)
commit19f52ee64c4a03e38896f7c4a09c5bc920c6c394
treedbd9e0de9822e0a79c931d77c7db75f643da693e
parent6ed7b12624f2f0733b73a25ac6c0292239056b91
mmc: core: Respect host's max_busy_timeout when sending sleep cmd

When sending the sleep command for host drivers supporting
MMC_CAP_WAIT_WHILE_BUSY, we need to confirm that max_busy_timeout is
big enough comparing to the sleep timeout specified from card's
EXT_CSD. If this isn't case, we use a R1 response instead of R1B and
fallback to use a delay instead.

Do note that a max_busy_timeout set to zero by the host, is interpreted
as it can cope with whatever timeout the mmc core provides it with.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/core/mmc.c