Skip to contentSkip to conversation

mmc: sdhci: deactivate tuning timer when host is suspending

PATCH Applied Aaron Lu 2 participants 4 messages Dec 27, 2011 – Jan 4, 2012

Subsystems (2)
lore
Share & tools
lore

Aaron Lu

author
#0 lore raw

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
index ab6018f..1abbd26 100644
@@ -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
Applied
#1 lore raw

Hi,

Quoted 15 lines · Aaron Lu

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 +0 -0
index ab6018f..1abbd26 100644

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
author
#2 lore raw
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.

---
 drivers/mmc/host/sdhci.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci.c +1 -2
index ab6018f..1abbd26 100644
@@ -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 -0
 	ret = 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
#3 lore raw

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