]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: core: Add card_busy to host_ops
authorJohan Rudholm <johan.rudholm@stericsson.com>
Mon, 28 Jan 2013 14:08:26 +0000 (15:08 +0100)
committerChris Ball <cjb@laptop.org>
Sun, 24 Feb 2013 19:37:07 +0000 (14:37 -0500)
This host_ops member is used to test if the card is signaling busy by
pulling dat[0:3] low.

Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Chris Ball <cjb@laptop.org>
include/linux/mmc/host.h

index 523d570f58ad880bc478d17acdd6266f2b54e348..0373b0a6daac4ac97dd19e7bec03b251f80d7cfe 100644 (file)
@@ -131,6 +131,9 @@ struct mmc_host_ops {
 
        int     (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
 
+       /* Check if the card is pulling dat[0:3] low */
+       int     (*card_busy)(struct mmc_host *host);
+
        /* The tuning command opcode value is different for SD and eMMC cards */
        int     (*execute_tuning)(struct mmc_host *host, u32 opcode);
        void    (*enable_preset_value)(struct mmc_host *host, bool enable);