]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: Add CLK_SET_RATE_PARENT for 8998 branch clocks
authorJeffrey Hugo <jhugo@codeaurora.org>
Tue, 18 Dec 2018 02:12:14 +0000 (19:12 -0700)
committerStephen Boyd <sboyd@kernel.org>
Wed, 9 Jan 2019 18:57:22 +0000 (10:57 -0800)
commit289afad9959283e8aa9d2c65bf038940f20b8b12
tree55102add0c7292779115b60ed67eaa020bc79cec
parentf9bb4b753eb00c02014e4467a28609f4f6ac7f88
clk: qcom: Add CLK_SET_RATE_PARENT for 8998 branch clocks

A branch clock is basically a clock that can be gated for power savings,
but is also what devices/drivers consume.  Configuring a branch clock's
rate needs to be done at the source, so for all branch clocks which have
a defined parent, set CLK_SET_RATE_PARENT so that clk_set_rate() calls on
branch clocks can do what is expected.  This is important as most drivers
do not check the resulting clock rate after a successful clk_set_rate()
call, thus the driver may get out of sync with the actual hardware state
and weird issues might crop up.  This has been observed with issues
getting SDHCI to reliably support "fast" cards such as SDR104.

Fixes: 4779c5a7ea7a (arm64: dts: Add msm8998 SoC and MTP board support)
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-msm8998.c