]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: rockchip: Don't recalc the clock when it goes off
authorDoug Anderson <dianders@chromium.org>
Tue, 14 Oct 2014 16:39:12 +0000 (09:39 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:36 +0000 (12:40 +0100)
commitb19928ebdabbe3e9e1fd59306360546fdf8157dd
treebc2fe86bbf00308cca6757c07e4796b60ce71098
parentf792453fe0d1c9e6d6e6d0d7fd5e2015e4d46001
mmc: dw_mmc: rockchip: Don't recalc the clock when it goes off

The "set_ios" function is called with a clock of 0 when the clock is
turning off.  There's no reason to go through all the extra Rockchip
logic (whose goal is to make sure DIV is 0 or 1) in that case.  The
Rockchip logic happened to work because the CCF will pick the lowest
possible rate when you ask it for a clock of 0, but it's silly to go
through all the remuxing and adjusting for no reason.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-rockchip.c