]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: sdhci: export sdhci_execute_tuning()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 8 Dec 2016 12:50:54 +0000 (21:50 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 8 Dec 2016 14:02:45 +0000 (15:02 +0100)
commit85a882c2e91d3655927ecdc1db823d1420a65b8f
treea8c832b9c8f636a782675cd309129300cef98fe4
parent6b11e70bb72c5bfbd7d1544518d26d4b1100aae1
mmc: sdhci: export sdhci_execute_tuning()

Some SDHCI-compat controllers support not only SD, but also eMMC,
but they use different commands for tuning: CMD19 for SD, CMD21 for
eMMC.

Due to the difference of the underlying mechanism, some controllers
(at least, the Cadence IP is the case) provide their own registers
for the eMMC tuning.

This commit will be useful when we want to override .execute_tuning
callback (for eMMC HS200 tuning), but still let it fall back to
sdhci_execute_tuning() for SD timing.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.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