9ae72730d8f71160cd2200096a007d016cd5751a
[openwrt/staging/neocturne.git] /
1 From 56e5ae0116aef87273cf1812d608645b076e4f02 Mon Sep 17 00:00:00 2001
2 From: Mantas Pucka <mantas@8devices.com>
3 Date: Tue, 25 Apr 2023 12:11:49 +0300
4 Subject: [PATCH] clk: qcom: gcc-ipq6018: Use floor ops for sdcc clocks
5
6 SDCC clocks must be rounded down to avoid overclocking the controller.
7
8 Fixes: d9db07f088af ("clk: qcom: Add ipq6018 Global Clock Controller support")
9 Signed-off-by: Mantas Pucka <mantas@8devices.com>
10 Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
11 Signed-off-by: Bjorn Andersson <andersson@kernel.org>
12 Link: https://lore.kernel.org/r/1682413909-24927-1-git-send-email-mantas@8devices.com
13 ---
14 drivers/clk/qcom/gcc-ipq6018.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/clk/qcom/gcc-ipq6018.c
18 +++ b/drivers/clk/qcom/gcc-ipq6018.c
19 @@ -1702,7 +1702,7 @@ static struct clk_rcg2 usb0_mock_utmi_cl
20 .name = "usb0_mock_utmi_clk_src",
21 .parent_data = gcc_xo_gpll6_gpll0_gpll0_out_main_div2,
22 .num_parents = 4,
23 - .ops = &clk_rcg2_ops,
24 + .ops = &clk_rcg2_floor_ops,
25 },
26 };
27