]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: Respect hw busy detection in card_busy_detect()
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 29 Jan 2014 12:11:27 +0000 (13:11 +0100)
committerChris Ball <chris@printf.net>
Sun, 23 Feb 2014 15:41:04 +0000 (10:41 -0500)
commiteaad8c7f079c95722b64f7d7ddaf65427024f08a
tree0dcfb9f86096f7ff4765591c6167fe6595c50392
parentc5868242e9b67f160814042d5e0d5481c3d3195f
mmc: block: Respect hw busy detection in card_busy_detect()

Currently for write request we don't trust the hw busy detection to be
fully handled by host, thus we also poll the card's status until we see
it's gets out of the busy state.

Still there are scenarios where it will a benefit to trust the hw busy
detection done by the host, since no additional polling is needed.
Let's prepare card_busy_detect() to be able to handle this.

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