From: Doug Anderson Date: Tue, 14 Oct 2014 16:39:12 +0000 (-0700) Subject: mmc: dw_mmc: rockchip: Don't recalc the clock when it goes off X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~28^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7791079ae89d91024019e11a1f430d38c491246;p=pandora-kernel.git 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 Acked-by: Jaehoon Chung Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed