mmc: mmci: Enable support for busy detection for ux500 variant
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Jan 2014 15:49:31 +0000 (16:49 +0100)
committerChris Ball <chris@printf.net>
Sun, 23 Feb 2014 15:41:21 +0000 (10:41 -0500)
commit8d94b54d99ea968a9d188ca0e68793ebed601220
treefa21c1ab39f0955a29f50ca429e2ac43dad5534b
parente7f3d22289e4307b3071cc18b1d8ecc6598c0be4
mmc: mmci: Enable support for busy detection for ux500 variant

The ux500 variants have HW busy detection support, which is indicated
by the busy_detect flag. For these variants let's enable the
MMC_CAP_WAIT_WHILE_BUSY flag and add the support for it.

The mmc core will provide the RSP_BUSY command flag for those requests
we should care about busy detection. Regarding the max_busy_timeout,
the HW don't support busy detection timeouts so at this initial step
let's make it simple and set it to zero to indicate we are able to
support any timeout.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Johan Rudholm <jrudholm@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/mmci.c
drivers/mmc/host/mmci.h