mmc: block: Implement card_busy_detect() for busy detection
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 29 Jan 2014 10:01:55 +0000 (11:01 +0100)
committerChris Ball <chris@printf.net>
Sun, 23 Feb 2014 15:40:58 +0000 (10:40 -0500)
commitc49433fb66935bd01930e37c7f47d38b6f8135fc
tree61e31de25238df4f3139315920e6592fa9877ffe
parentbcc3e1726d827c2d6f62f0e0e7bbc99eed7ad925
mmc: block: Implement card_busy_detect() for busy detection

To complete a data write request we poll for the card's status register
by sending CMD13. The are other scenarios when this polling method are
needed, which is why we here moves this code to it's own function. No
functional change.

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