mmc: sdhci: add get_cd() implementation
authorKevin Liu <kliu5@marvell.com>
Thu, 28 Feb 2013 09:35:53 +0000 (17:35 +0800)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 16:24:50 +0000 (12:24 -0400)
commit94144a465dd0b34b3249f988a09472d0f57ad2b7
tree207bb564e0a1f6a0a4762f579dc09c7f119c86f1
parent1450734ec61cda7bbb77afc8cb412b9d64c62d9a
mmc: sdhci: add get_cd() implementation

1. mmc_rescan will call get_cd to know whether the card is present
before mmc_rescan_try_freq to avoid useless trials during
card removal or start host is called when card is not present.

2. get_cd needs to be checked to resolve slow card removal issue.

Signed-off-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c