clk: Add set_rate_and_parent() op
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 15 Jan 2014 18:47:22 +0000 (10:47 -0800)
committerMike Turquette <mturquette@linaro.org>
Thu, 16 Jan 2014 20:00:57 +0000 (12:00 -0800)
Some of Qualcomm's clocks can change their parent and rate at the
same time with a single register write. Add support for this
hardware to the common clock framework by adding a new
set_rate_and_parent() op. When the clock framework determines
that both the parent and the rate are going to change during
clk_set_rate() it will call the .set_rate_and_parent() op if
available and fall back to calling .set_parent() followed by
.set_rate() otherwise.

Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Documentation/clk.txt
drivers/clk/clk.c
include/linux/clk-provider.h

Simple merge
Simple merge
Simple merge