]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Enable / disable re-tuning
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 7 May 2015 10:10:13 +0000 (13:10 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:06:54 +0000 (09:06 +0200)
commite24fad9769367958379eabb0ae48bcc486155335
tree6ff2bab35021a687df1e0c3b0f19d61aaf4f5f93
parentd19315083c213c1782d097c0d69676d3d1064ef7
mmc: core: Enable / disable re-tuning

Enable re-tuning when tuning is executed and
disable re-tuning when card is no longer initialized.

In the case of SDIO suspend, the card can keep power.
In that case, re-tuning need not be disabled, but, if
a re-tuning timer is being used, ensure it is disabled
and assume that re-tuning will be needed upon resume
since it is not known how long the suspend will last.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/sdio.c