summaryrefslogtreecommitdiff
path: root/include/linux/mmc/host.h
diff options
context:
space:
mode:
authorVeerabhadrarao Badiganti <vbadigan@codeaurora.org>2017-06-08 23:04:42 +0530
committerVeerabhadrarao Badiganti <vbadigan@codeaurora.org>2017-06-09 22:02:34 +0530
commit3934c3777207328ff886e73297e9093028ad6a2d (patch)
tree356f0bffcd1e71c26d5ff9224c6637d532b81a67 /include/linux/mmc/host.h
parent6c90c8860c5863fda38b2d2f3145c1d9b940d883 (diff)
mmc: core: Ignore CRC errors with CMD13 while executing tuning
While executing tuning in case CMD19 fails, the driver sends CMD13 multiple times to ensure the card is ready to receive the next tuning command. If this status command fails with CRC error, it will trigger tuning. This will result in back to back tuning multiple times. To avoid this situation, ignore CRCs error generated with CMD13 while executing tuning. Change-Id: Ife338768264ebebebc655fe11874e905abdf7482 Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Diffstat (limited to 'include/linux/mmc/host.h')
-rw-r--r--include/linux/mmc/host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index d9e12c1b1748..a5d125aac1cf 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -821,6 +821,8 @@ static inline bool mmc_card_hs400(struct mmc_card *card)
return card->host->ios.timing == MMC_TIMING_MMC_HS400;
}
+void mmc_retune_enable(struct mmc_host *host);
+void mmc_retune_disable(struct mmc_host *host);
void mmc_retune_timer_stop(struct mmc_host *host);
static inline void mmc_retune_needed(struct mmc_host *host)