Skip to contentSkip to conversation

mmc: sdhci: avoid double-delay while transitioning to 1.8V

PATCH Applied Russell King 2 participants 2 messages Jun 26, 2014 – Jul 2, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sdhci: avoid double-delay while transitioning to 1.8V

The MMC core in mmc_set_signal_voltage() already provides for the delay required to switch to 1.8V, so there is no need for drivers to perform this wait themselves.

---
This patch was missed from the previous set because v2 was never sent.

 drivers/mmc/host/sdhci.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/mmc/host/sdhci.c +0 -3
index d558f70756b0..3c8b91d3a793 100644
@@ -1762,9 +1762,6 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host,
 		ctrl |= SDHCI_CTRL_VDD_180;
 		sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
 
-		/* Wait for 5ms */
-		usleep_range(5000, 5500);
-
 		/* 1.8V regulator output should be stable within 5 ms */
 		ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);
 		if (ctrl & SDHCI_CTRL_VDD_180)
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 5 lines · Russell King

The MMC core in mmc_set_signal_voltage() already provides for the delay required to switch to 1.8V, so there is no need for drivers to perform this wait themselves.

Thanks! Applied for next.

Kind regards
Uffe

Quoted 27 lines

---
This patch was missed from the previous set because v2 was never sent.

 drivers/mmc/host/sdhci.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/mmc/host/sdhci.c +0 -4
index d558f70756b0..3c8b91d3a793 100644
@@ -1762,9 +1762,6 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host,
                ctrl |= SDHCI_CTRL_VDD_180;
                sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
 
-               /* Wait for 5ms */
-               usleep_range(5000, 5500);
-
                /* 1.8V regulator output should be stable within 5 ms */
                ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);
                if (ctrl & SDHCI_CTRL_VDD_180)
--

1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html