All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci: avoid double-delay while transitioning to 1.8V
@ 2014-06-26 14:50 Russell King
  2014-07-02  9:06 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2014-06-26 14:50 UTC (permalink / raw)
  To: Chris Ball, Ulf Hansson; +Cc: linux-mmc

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.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
This patch was missed from the previous set because v2 was never sent.

 drivers/mmc/host/sdhci.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index d558f70756b0..3c8b91d3a793 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mmc: sdhci: avoid double-delay while transitioning to 1.8V
  2014-06-26 14:50 [PATCH] mmc: sdhci: avoid double-delay while transitioning to 1.8V Russell King
@ 2014-07-02  9:06 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2014-07-02  9:06 UTC (permalink / raw)
  To: Russell King; +Cc: Chris Ball, linux-mmc

On 26 June 2014 16:50, Russell King <rmk+kernel@arm.linux.org.uk> wrote:
> 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.
>
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Thanks! Applied for next.

Kind regards
Uffe

> ---
> This patch was missed from the previous set because v2 was never sent.
>
>  drivers/mmc/host/sdhci.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index d558f70756b0..3c8b91d3a793 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-02  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-26 14:50 [PATCH] mmc: sdhci: avoid double-delay while transitioning to 1.8V Russell King
2014-07-02  9:06 ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.