clk: qcom: gcc-ipq6018: Use floor ops for sdcc clocks
authorMantas Pucka <mantas@8devices.com>
Tue, 25 Apr 2023 09:11:49 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:49 +0000 (16:21 +0200)
commit792998a8cf6b772d5301ab417dc52072dd71adb1
treeb050086dbc033aef48fe19cf8569ae4ceb5108e7
parentf0cafc443c53e4be8cf63e07bf10bb354abc8888
clk: qcom: gcc-ipq6018: Use floor ops for sdcc clocks

[ Upstream commit 56e5ae0116aef87273cf1812d608645b076e4f02 ]

SDCC clocks must be rounded down to avoid overclocking the controller.

Fixes: d9db07f088af ("clk: qcom: Add ipq6018 Global Clock Controller support")
Signed-off-by: Mantas Pucka <mantas@8devices.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/1682413909-24927-1-git-send-email-mantas@8devices.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/gcc-ipq6018.c