]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Control the delay between tuning commands
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 20 Apr 2017 08:14:43 +0000 (16:14 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:42:27 +0000 (21:42 +0200)
commit053a33594764e5f19486184c0d42de1437f7ca54
tree4a4763e27e7814c3693c0449a9b8517def13c2da
parent2b45f066c55106eebc69682b25af94e863f3cf7c
mmc: sdhci: Control the delay between tuning commands

The delay between tuning commands for SD cards is not part of the
specification. A driver that needs it probably needs it for eMMC
too, whereas most drivers would probably like to set it to 0. Make
it a host member (host->tuning_delay) that defaults to the existing
behaviour. Drivers can set it to zero to eliminate the delay, or
set it to a positive value to always have a delay.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h