]> git.baikalelectronics.ru Git - kernel.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)
commitf3426a5a365c5e1836d77769d7d7f368e3810fd8
treea8c832b9c8f636a782675cd309129300cef98fe4
parentdbca30054d0ba909c8c54c00fe8eadd0309a5a48
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