summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDong Aisheng <aisheng.dong@freescale.com>2015-10-31 22:48:27 +0800
committerDong Aisheng <aisheng.dong@freescale.com>2015-11-01 01:44:43 +0800
commit2eac7eac3219c22123df628995891eb5ed6ccb25 (patch)
treef97cc32a7cef83464e4eab4aad60cd4e01acd96d /drivers
parent504c39d92a2910aa68abc6a9579e924ab3fb6715 (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')
-rw-r--r--drivers/mmc/host/sdhci.c14
-rw-r--r--drivers/mmc/host/sdhci.h1
2 files changed, 1 insertions, 14 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;
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index 4d38c29892bb..399f5b7a5b0e 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -290,7 +290,6 @@ struct sdhci_ops {
unsigned int (*get_max_clock)(struct sdhci_host *host);
unsigned int (*get_min_clock)(struct sdhci_host *host);
unsigned int (*get_timeout_clock)(struct sdhci_host *host);
- unsigned int (*get_max_timeout_counter)(struct sdhci_host *host);
int (*platform_bus_width)(struct sdhci_host *host,
int width);
void (*platform_send_init_74_clocks)(struct sdhci_host *host,