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)
commit83b600b8de0e83661a8f40091a7966fac052a21b
tree4a4763e27e7814c3693c0449a9b8517def13c2da
parentba49cbd0936e12eac245c0fb420a291e8505f639
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