From: James Hogan Date: Mon, 29 Jul 2013 11:25:02 +0000 (+0100) Subject: clk: clk-mux: implement remuxing on set_rate X-Git-Tag: v3.12-rc1~78^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e366fdd72529c545ccf327569ee250c1673be221;p=pandora-kernel.git clk: clk-mux: implement remuxing on set_rate Implement clk-mux remuxing if the CLK_SET_RATE_NO_REPARENT flag isn't set. This implements determine_rate for clk-mux to propagate to each parent and to choose the best one (like clk-divider this chooses the parent which provides the fastest rate <= the requested rate). The determine_rate op is implemented as a core helper function so that it can be easily used by more complex clocks which incorporate muxes. Signed-off-by: James Hogan Reviewed-by: Stephen Boyd Cc: Mike Turquette Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Mike Turquette --- Reading git-diff-tree failed