mmc: sdhci: remove power control register checking in sdhci_request
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Thu, 8 Dec 2011 09:40:49 +0000 (17:40 +0800)
committerbuildbot <buildbot@intel.com>
Mon, 26 Dec 2011 10:56:23 +0000 (02:56 -0800)
BZ: 18012

Since mmc block layer and core layer will make sure driver can stop sending
command to SD card if card is removed immediately, this checking in
sdhci_request function is not used anymore. So remove it.

Change-Id: If9bf0d2db1170296d5d19d9d058251e9d87a7652
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/29375
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/mmc/host/sdhci.c

index b12c048..d2b3ea7 100644 (file)
@@ -1486,14 +1486,6 @@ static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq)
        else
                present = sdhci_readl(host, SDHCI_PRESENT_STATE) &
                                SDHCI_CARD_PRESENT;
-       /*
-        * If user insert/remove card too quickly, host may send
-        * command before host power up. That is bad, which can
-        * lead host generate no interrupts.
-        * So before sending command, check power control register
-        */
-       if (!(sdhci_readb(host, SDHCI_POWER_CONTROL) & SDHCI_POWER_ON))
-               present = false;
 
        if (!present || host->flags & SDHCI_DEVICE_DEAD) {
                host->mrq->cmd->error = -ENOMEDIUM;