diff options
author | Todd Poynor <toddpoynor@google.com> | 2010-10-11 16:51:28 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:09:38 -0700 |
commit | 6e144f28e583ad5ff907fed9a55ee1955e4b0cd7 (patch) | |
tree | b5f8dd9a60f2723a413a9928544ff7a1253f0872 | |
parent | b824eef4ce617311a08c910e278546b435b50a13 (diff) | |
download | kernel_samsung_tuna-6e144f28e583ad5ff907fed9a55ee1955e4b0cd7.zip kernel_samsung_tuna-6e144f28e583ad5ff907fed9a55ee1955e4b0cd7.tar.gz kernel_samsung_tuna-6e144f28e583ad5ff907fed9a55ee1955e4b0cd7.tar.bz2 |
sdhci: Always pass clock request value zero to set_clock host op
To allow the set_clock host op to disable the SDCLK source when not
needed, always call the host op when the requested clock speed is
zero. Do this even if host->clock already equals zero, because
the SDHCI driver may set that value (without calling the host op)
to force an update at the next (non-zero-speed) call.
Change-Id: If99230d76138679b5767f77cb925f15408ae518e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
-rw-r--r-- | drivers/mmc/host/sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 58d5436..7fc5848 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1044,7 +1044,7 @@ static void sdhci_set_clock(struct sdhci_host *host, unsigned int clock) u16 clk = 0; unsigned long timeout; - if (clock == host->clock) + if (clock && clock == host->clock) return; if (host->ops->set_clock) { |