diff options
author | Dong Aisheng <aisheng.dong@freescale.com> | 2015-10-31 22:48:27 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@freescale.com> | 2015-11-01 01:44:43 +0800 |
commit | 2eac7eac3219c22123df628995891eb5ed6ccb25 (patch) | |
tree | f97cc32a7cef83464e4eab4aad60cd4e01acd96d /drivers/mmc/host/sdhci.c | |
parent | 504c39d92a2910aa68abc6a9579e924ab3fb6715 (diff) |
MLK-11796-2 Revert "ENGR00289406-1 mmc: sdhci: add quirk for get max timeout counter"
Revert the patch and using upstream version instead.
This reverts commit 056ef389fba70e2de8d1c5d976a1c1bd0578d381.
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 7a8792893027..c04538a431c3 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3044,19 +3044,7 @@ int sdhci_add_host(struct sdhci_host *host) if (host->quirks & SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK) host->timeout_clk = mmc->f_max / 1000; - if (host->quirks2 & SDHCI_QUIRK2_NOSTD_TIMEOUT_COUNTER) { - if (host->ops->get_max_timeout_counter) { - mmc->max_discard_to = - host->ops->get_max_timeout_counter(host) - / host->timeout_clk; - } else { - pr_err("%s: Hardware doesn't specify max timeout " - "counter\n", mmc_hostname(mmc)); - return -ENODEV; - } - } else { - mmc->max_discard_to = (1 << 27) / host->timeout_clk; - } + mmc->max_discard_to = (1 << 27) / host->timeout_clk; mmc->caps |= MMC_CAP_SDIO_IRQ | MMC_CAP_ERASE | MMC_CAP_CMD23; |