]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: gcc-sc7180: Use floor ops for sdcc clks
authorDouglas Anderson <dianders@chromium.org>
Thu, 10 Dec 2020 18:22:38 +0000 (10:22 -0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 10 Dec 2020 20:27:30 +0000 (12:27 -0800)
commitb8ab9abcf0b76357c246027db61b4504ca4d0a49
treed07a23d58f8cfbd2b10b0070765c0caac0690a88
parent45e067fc6965e34a078906a1d3c4ecff3b957c0d
clk: qcom: gcc-sc7180: Use floor ops for sdcc clks

I would repeat the same commit message that was in commit bc1a8cf674a1
("clk: qcom: gcc-sdm845: Use floor ops for sdcc clks") but it seems
silly to do so when you could just go read that commit.

NOTE: this is actually extra terrible because we're missing the 50 MHz
rate in the table (see the next patch AKA ("clk: qcom: gcc-sc7180: Add
50 MHz clock rate for SDC2")).  That means then when you run an older
SD card it'll try to clock it at 100 MHz when it's only specced to run
at 50 MHz max.  As you can probably guess that doesn't work super
well.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Fixes: 844ec4c00000 ("clk: qcom: Add Global Clock controller (GCC) driver for SC7180")
Link: https://lore.kernel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-sc7180.c