]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: sdhci_execute_tuning() must delete timer
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Jun 2016 13:24:38 +0000 (16:24 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:45 +0000 (10:34 +0200)
commit8236a260413630998d4f5d7597521a9749019fac
tree07b5c586978817d1a955cc72c51e1e148af6dea2
parent4436b213f192e1587d3d13f0f4d4766e5b65f9b9
mmc: sdhci: sdhci_execute_tuning() must delete timer

sdhci_send_command() starts a timer to catch cases where the host
controller fails. The timer is normally deleted when the request completes,
but in the case of sdhci_execute_tuning() the request is handled
differently and the timer is left running. This goes unnoticed because
tuning is done before another command so the timer gets reset then.
That should not be relied upon, so make sdhci_execute_tuning() delete the
timer.

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