]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: drop CLK_SET_RATE_GATE from sdc clocks
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 19 Jun 2018 13:40:50 +0000 (15:40 +0200)
committerMichael Turquette <mturquette@baylibre.com>
Tue, 19 Jun 2018 17:02:28 +0000 (10:02 -0700)
commite84091eaadd05da2f2c2ca1cc6b35f6e82eb27b9
treeb53114778640fccc4897bf3dbcdbfd4c091170d0
parent0d5624e606504772b89d3c3d6b1be740ef176c61
clk: qcom: drop CLK_SET_RATE_GATE from sdc clocks

the mmci driver (drivers/mmc/host/mmci.c) does the following sequence:
* clk_prepare_enable()
* clk_set_rate()

on SDCx_clk which is a children of SDCx_src. SDCx_src has
CLK_SET_RATE_GATE so this sequence should not be allowed but this was not
enforced. IOW, the flag is ignored. Dropping the flag won't change
anything to the current behaviour of the platform.

CLK_SET_RATE_GATE is being fixed and enforced now. If the flag was kept,
the mmci driver would receive -EBUSY when calling clk_set_rate()

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20180619134051.16726-2-jbrunet@baylibre.com
drivers/clk/qcom/gcc-ipq806x.c
drivers/clk/qcom/gcc-mdm9615.c
drivers/clk/qcom/gcc-msm8660.c
drivers/clk/qcom/gcc-msm8960.c