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)
committerTodd Poynor <toddpoynor@google.com>
Tue, 26 Oct 2010 02:17:44 +0000 (19:17 -0700)
commit762476fa24df17914e1a8fab42e12d59da87539a
tree445958207cf7618d117114629766f7bb26388595
parentd4ffa5549ccc36673f90b6cec4ed7867be8c2bae
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