]> 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)
commit73bf67ea6899326735968873e196b466df84e09b
treeb53114778640fccc4897bf3dbcdbfd4c091170d0
parent2358d48a6db92cb022eb848a0943363a742d51a5
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