ARM: 7726/1: mmc: mmci: Add card_busy function to improve UHS card support
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 15 May 2013 19:53:22 +0000 (20:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 May 2013 23:09:16 +0000 (00:09 +0100)
commit0125962000777cd1e2ce53deefb99779d5ee5199
treea7c3a3c8d7e53391b9b02362407919c7f11045aa
parent9cc639a20fdc0b935e55d4992f93963f95233ca4
ARM: 7726/1: mmc: mmci: Add card_busy function to improve UHS card support

To verify a signal voltage switch at initialization of UHS cards the
.card_busy callback is used. For some of the ST-variants, card busy
detection on the DAT0 pin is supported.

We extend the variant struct with a busy_detect flag to indicate
support for it. A corresponding busy detect function, which polls the
busy status bit, is then set to the .card_busy callback.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c
drivers/mmc/host/mmci.h