OSDN Git Service

sdhci: Always pass clock request value zero to set_clock host op
authorTodd Poynor <toddpoynor@google.com>
Mon, 11 Oct 2010 23:51:28 +0000 (16:51 -0700)
committerBrian Swetland <swetland@google.com>
Tue, 29 Mar 2011 20:58:00 +0000 (13:58 -0700)
commit84b26282c419e275b3dc3b73e1eaa768417cbd0f
treedba88770cf90f5500e2036ef9b21040802d32c2e
parentbc67facb9c749ad38addc374c04f50bbda52bac8
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>
drivers/mmc/host/sdhci.c