mmc: sdhci: deactivate tuning timer when host is suspending
PATCH 1/1 mmc: sdhci: deactivate tuning timer when host is suspending
From: Philip Rakity <[email protected]>
Since we are suspending, the tuning timer should be deactivated.
--- drivers/mmc/host/sdhci.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci.c +1 -2
@@ -2347,8 +2347,7 @@ int sdhci_suspend_host(struct sdhci_host *host)if (host->version >=SDHCI_SPEC_300 && host->tuning_count && host->tuning_mode ==SDHCI_TUNING_MODE_1 ) { host->flags &= ~SDHCI_NEEDS_RETUNING ; -mod_timer (&host->tuning_timer, jiffies + - host->tuning_count *HZ ); +del_timer_sync (&host->tuning_timer); } ret =mmc_suspend_host (host->mmc);
Signature · 1 line
1.7.7.4
Chris Ball
AppliedHi,
Quoted 15 lines · Aaron Lu
From: Philip Rakity <[email protected]>
Since we are suspending, the tuning timer should be deactivated.
Signed-off-by Philip Rakity <[email protected]>Acked-by Aaron Lu <[email protected]>--- drivers/mmc/host/sdhci.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)drivers/mmc/host/sdhci.c +0
-0
drivers/mmc/host/sdhci.c int sdhci_suspend_host(struct sdhci_host *host) · line 2353
Quoted 9 lines
drivers/mmc/host/sdhci.c +1
-2@@ -2347,8 +2347,7 @@ int sdhci_suspend_host(struct sdhci_host *host)if (host->version >=SDHCI_SPEC_300 && host->tuning_count && host->tuning_mode ==SDHCI_TUNING_MODE_1 ) { host->flags &= ~SDHCI_NEEDS_RETUNING ; -mod_timer (&host->tuning_timer, jiffies + - host->tuning_count *HZ ); +del_timer_sync (&host->tuning_timer); } ret =mmc_suspend_host (host->mmc);
Pushed to mmc-next for 3.3 with a stable@ tag, thanks.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child
Quoted 26 lines · Chris Ball
Hi,
Quoted 23 lines · Aaron Lu
From: Philip Rakity <[email protected]>
Since we are suspending, the tuning timer should be deactivated.
Signed-off-by Philip Rakity <[email protected]>Acked-by Aaron Lu <[email protected]>--- drivers/mmc/host/sdhci.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)drivers/mmc/host/sdhci.c +1
-2@@ -2347,8 +2347,7 @@ int sdhci_suspend_host(struct sdhci_host *host)if (host->version >=SDHCI_SPEC_300 && host->tuning_count && host->tuning_mode ==SDHCI_TUNING_MODE_1 ) { host->flags &= ~SDHCI_NEEDS_RETUNING ; -mod_timer (&host->tuning_timer, jiffies + - host->tuning_count *HZ ); +del_timer_sync (&host->tuning_timer); }
Quoted 3 lines
drivers/mmc/host/sdhci.c int sdhci_suspend_host(struct sdhci_host *host) · line 2353
Quoted 1 line
drivers/mmc/host/sdhci.c +0
-0ret =mmc_suspend_host (host->mmc);Pushed to mmc-next for 3.3 with a stable@ tag, thanks.
I'm sorry Chris, this patch is deprecated and please apply the following patch with Adrian's ack instead:
[PATCH 1/2] mmc: sdhci: Fix tuning timer incorrect setting when suspending host
Thanks.
Quoted 6 lines
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child
Hi,
Quoted 3 lines · Aaron Lu
I'm sorry Chris, this patch is deprecated and please apply the following patch with Adrian's ack instead:
[PATCH 1/2] mmc: sdhci: Fix tuning timer incorrect setting when suspending host
Okay -- I've pushed that one instead, thanks.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child