diff options
author | Aaron Lu <aaron.lu@amd.com> | 2011-12-27 22:11:12 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-01-12 15:16:55 -0500 |
commit | c6ced0db08010ed75df221a2946c5228454b38d5 (patch) | |
tree | 5fc9eefc412af40c73b0f019160de40153add3cf /drivers/mmc | |
parent | aa9df4fb2adcc73d36fa41e23059519be770aaa5 (diff) |
mmc: sdhci: Fix tuning timer incorrect setting when suspending host
When suspending host, the tuning timer shoule be deactivated.
And the HOST_NEEDS_TUNING flag should be set after tuning timer is
deactivated.
Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Aaron Lu <aaron.lu@amd.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index e06299734f5d..988ae06d1a09 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -2356,9 +2356,8 @@ int sdhci_suspend_host(struct sdhci_host *host) | |||
2356 | /* Disable tuning since we are suspending */ | 2356 | /* Disable tuning since we are suspending */ |
2357 | if (host->version >= SDHCI_SPEC_300 && host->tuning_count && | 2357 | if (host->version >= SDHCI_SPEC_300 && host->tuning_count && |
2358 | host->tuning_mode == SDHCI_TUNING_MODE_1) { | 2358 | host->tuning_mode == SDHCI_TUNING_MODE_1) { |
2359 | del_timer_sync(&host->tuning_timer); | ||
2359 | host->flags &= ~SDHCI_NEEDS_RETUNING; | 2360 | host->flags &= ~SDHCI_NEEDS_RETUNING; |
2360 | mod_timer(&host->tuning_timer, jiffies + | ||
2361 | host->tuning_count * HZ); | ||
2362 | } | 2361 | } |
2363 | 2362 | ||
2364 | ret = mmc_suspend_host(host->mmc); | 2363 | ret = mmc_suspend_host(host->mmc); |