|
@@ -2066,8 +2066,7 @@ static void sdhci_card_event(struct mmc_host *mmc)
|
|
spin_lock_irqsave(&host->lock, flags);
|
|
spin_lock_irqsave(&host->lock, flags);
|
|
|
|
|
|
/* Check host->mrq first in case we are runtime suspended */
|
|
/* Check host->mrq first in case we are runtime suspended */
|
|
- if (host->mrq &&
|
|
|
|
- !(sdhci_readl(host, SDHCI_PRESENT_STATE) & SDHCI_CARD_PRESENT)) {
|
|
|
|
|
|
+ if (host->mrq && !sdhci_do_get_cd(host)) {
|
|
pr_err("%s: Card removed during transfer!\n",
|
|
pr_err("%s: Card removed during transfer!\n",
|
|
mmc_hostname(host->mmc));
|
|
mmc_hostname(host->mmc));
|
|
pr_err("%s: Resetting controller.\n",
|
|
pr_err("%s: Resetting controller.\n",
|