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>
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;