clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock
authorMarijn Suijten <marijn.suijten@somainline.org>
Thu, 14 Jul 2022 20:38:22 +0000 (22:38 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 29 Aug 2022 20:55:57 +0000 (15:55 -0500)
commit6956c18f4ad9200aa945f7ea37d65a05afc49d51
treed2c0bbf6e634e513639de4f568d22017c01bbe0f
parent51b0a5e044a4c49bcaf96c00123d26119da105d7
clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock

In commit 3f905469c8ce ("clk: qcom: gcc: Use floor ops for SDCC clocks")
floor ops were applied to SDCC2 only, but flooring is also required on
the SDCC1 apps clock which is used by the eMMC card on Sony's Nile
platform, and otherwise result in the typicial "Card appears
overclocked" warnings observed on many other platforms before:

    mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
    mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
    mmc0: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz

Fixes: f2a76a2955c0 ("clk: qcom: Add Global Clock controller (GCC) driver for SDM660")
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220714203822.186448-1-marijn.suijten@somainline.org
drivers/clk/qcom/gcc-sdm660.c