mmc: sdhci: add standard hw auto retuning support
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 12 Jul 2016 07:46:17 +0000 (15:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:55 +0000 (10:34 +0200)
commitf37b20ebc4bc7c41e6fe1f4af6a62e9de70b771b
treed1910e5d1867242c5e0e7b12a017850b46dc4a61
parent152f05c783438b57bb42e8171aa871c49ae5b2d5
mmc: sdhci: add standard hw auto retuning support

If HW supports SDHCI_TUNING_MODE_3 which is auto retuning, we won't
retune during runtime suspend and resume, instead we use Re-tuning
Request signaled via SDHCI_INT_RETUNE interrupt to do retuning and
hw auto retuning during data transfer to guarantee the signal sample
window correction.

This can avoid a mass of repeatedly retuning during small file system
data access and improve the performance.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h