7372b1da8eda8fa442652fd4bb4c755db8803133
[openwrt/staging/ldir.git] /
1 From 78936d46470938caa9a7ea529deeb36777b4f98e Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Wed, 16 Nov 2022 22:46:55 +0100
4 Subject: [PATCH] clk: qcom: ipq8074: populate fw_name for all parents
5
6 It appears that having only .name populated in parent_data for clocks
7 which are only globally searchable currently will not work as the clk core
8 won't copy that name if there is no .fw_name present as well.
9
10 So, populate .fw_name for all parent clocks in parent_data.
11
12 Fixes: ae55ad32e273 ("clk: qcom: ipq8074: convert to parent data")
13
14 Co-developed-by: Christian Marangi <ansuelsmth@gmail.com>
15 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
16 Signed-off-by: Robert Marko <robimarko@gmail.com>
17 Signed-off-by: Bjorn Andersson <andersson@kernel.org>
18 Link: https://lore.kernel.org/r/20221116214655.1116467-1-robimarko@gmail.com
19 ---
20 drivers/clk/qcom/gcc-ipq8074.c | 52 +++++++++++++++++-----------------
21 1 file changed, 26 insertions(+), 26 deletions(-)
22
23 --- a/drivers/clk/qcom/gcc-ipq8074.c
24 +++ b/drivers/clk/qcom/gcc-ipq8074.c
25 @@ -680,7 +680,7 @@ static struct clk_rcg2 pcie0_aux_clk_src
26 };
27
28 static const struct clk_parent_data gcc_pcie20_phy0_pipe_clk_xo[] = {
29 - { .name = "pcie20_phy0_pipe_clk" },
30 + { .fw_name = "pcie0_pipe", .name = "pcie20_phy0_pipe_clk" },
31 { .fw_name = "xo", .name = "xo" },
32 };
33
34 @@ -733,7 +733,7 @@ static struct clk_rcg2 pcie1_aux_clk_src
35 };
36
37 static const struct clk_parent_data gcc_pcie20_phy1_pipe_clk_xo[] = {
38 - { .name = "pcie20_phy1_pipe_clk" },
39 + { .fw_name = "pcie1_pipe", .name = "pcie20_phy1_pipe_clk" },
40 { .fw_name = "xo", .name = "xo" },
41 };
42
43 @@ -1137,7 +1137,7 @@ static const struct freq_tbl ftbl_nss_no
44
45 static const struct clk_parent_data gcc_xo_bias_pll_nss_noc_clk_gpll0_gpll2[] = {
46 { .fw_name = "xo", .name = "xo" },
47 - { .name = "bias_pll_nss_noc_clk" },
48 + { .fw_name = "bias_pll_nss_noc_clk", .name = "bias_pll_nss_noc_clk" },
49 { .hw = &gpll0.clkr.hw },
50 { .hw = &gpll2.clkr.hw },
51 };
52 @@ -1362,7 +1362,7 @@ static const struct freq_tbl ftbl_nss_pp
53
54 static const struct clk_parent_data gcc_xo_bias_gpll0_gpll4_nss_ubi32[] = {
55 { .fw_name = "xo", .name = "xo" },
56 - { .name = "bias_pll_cc_clk" },
57 + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
58 { .hw = &gpll0.clkr.hw },
59 { .hw = &gpll4.clkr.hw },
60 { .hw = &nss_crypto_pll.clkr.hw },
61 @@ -1413,10 +1413,10 @@ static const struct freq_tbl ftbl_nss_po
62
63 static const struct clk_parent_data gcc_xo_uniphy0_rx_tx_ubi32_bias[] = {
64 { .fw_name = "xo", .name = "xo" },
65 - { .name = "uniphy0_gcc_rx_clk" },
66 - { .name = "uniphy0_gcc_tx_clk" },
67 + { .fw_name = "uniphy0_gcc_rx_clk", .name = "uniphy0_gcc_rx_clk" },
68 + { .fw_name = "uniphy0_gcc_tx_clk", .name = "uniphy0_gcc_tx_clk" },
69 { .hw = &ubi32_pll.clkr.hw },
70 - { .name = "bias_pll_cc_clk" },
71 + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
72 };
73
74 static const struct parent_map gcc_xo_uniphy0_rx_tx_ubi32_bias_map[] = {
75 @@ -1465,10 +1465,10 @@ static const struct freq_tbl ftbl_nss_po
76
77 static const struct clk_parent_data gcc_xo_uniphy0_tx_rx_ubi32_bias[] = {
78 { .fw_name = "xo", .name = "xo" },
79 - { .name = "uniphy0_gcc_tx_clk" },
80 - { .name = "uniphy0_gcc_rx_clk" },
81 + { .fw_name = "uniphy0_gcc_tx_clk", .name = "uniphy0_gcc_tx_clk" },
82 + { .fw_name = "uniphy0_gcc_rx_clk", .name = "uniphy0_gcc_rx_clk" },
83 { .hw = &ubi32_pll.clkr.hw },
84 - { .name = "bias_pll_cc_clk" },
85 + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
86 };
87
88 static const struct parent_map gcc_xo_uniphy0_tx_rx_ubi32_bias_map[] = {
89 @@ -1696,12 +1696,12 @@ static const struct freq_tbl ftbl_nss_po
90
91 static const struct clk_parent_data gcc_xo_uniphy0_rx_tx_uniphy1_rx_tx_ubi32_bias[] = {
92 { .fw_name = "xo", .name = "xo" },
93 - { .name = "uniphy0_gcc_rx_clk" },
94 - { .name = "uniphy0_gcc_tx_clk" },
95 - { .name = "uniphy1_gcc_rx_clk" },
96 - { .name = "uniphy1_gcc_tx_clk" },
97 + { .fw_name = "uniphy0_gcc_rx_clk", .name = "uniphy0_gcc_rx_clk" },
98 + { .fw_name = "uniphy0_gcc_tx_clk", .name = "uniphy0_gcc_tx_clk" },
99 + { .fw_name = "uniphy1_gcc_rx_clk", .name = "uniphy1_gcc_rx_clk" },
100 + { .fw_name = "uniphy1_gcc_tx_clk", .name = "uniphy1_gcc_tx_clk" },
101 { .hw = &ubi32_pll.clkr.hw },
102 - { .name = "bias_pll_cc_clk" },
103 + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
104 };
105
106 static const struct parent_map
107 @@ -1758,12 +1758,12 @@ static const struct freq_tbl ftbl_nss_po
108
109 static const struct clk_parent_data gcc_xo_uniphy0_tx_rx_uniphy1_tx_rx_ubi32_bias[] = {
110 { .fw_name = "xo", .name = "xo" },
111 - { .name = "uniphy0_gcc_tx_clk" },
112 - { .name = "uniphy0_gcc_rx_clk" },
113 - { .name = "uniphy1_gcc_tx_clk" },
114 - { .name = "uniphy1_gcc_rx_clk" },
115 + { .fw_name = "uniphy0_gcc_tx_clk", .name = "uniphy0_gcc_tx_clk" },
116 + { .fw_name = "uniphy0_gcc_rx_clk", .name = "uniphy0_gcc_rx_clk" },
117 + { .fw_name = "uniphy1_gcc_tx_clk", .name = "uniphy1_gcc_tx_clk" },
118 + { .fw_name = "uniphy1_gcc_rx_clk", .name = "uniphy1_gcc_rx_clk" },
119 { .hw = &ubi32_pll.clkr.hw },
120 - { .name = "bias_pll_cc_clk" },
121 + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
122 };
123
124 static const struct parent_map
125 @@ -1820,10 +1820,10 @@ static const struct freq_tbl ftbl_nss_po
126
127 static const struct clk_parent_data gcc_xo_uniphy2_rx_tx_ubi32_bias[] = {
128 { .fw_name = "xo", .name = "xo" },
129 - { .name = "uniphy2_gcc_rx_clk" },
130 - { .name = "uniphy2_gcc_tx_clk" },
131 + { .fw_name = "uniphy2_gcc_rx_clk", .name = "uniphy2_gcc_rx_clk" },
132 + { .fw_name = "uniphy2_gcc_tx_clk", .name = "uniphy2_gcc_tx_clk" },
133 { .hw = &ubi32_pll.clkr.hw },
134 - { .name = "bias_pll_cc_clk" },
135 + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
136 };
137
138 static const struct parent_map gcc_xo_uniphy2_rx_tx_ubi32_bias_map[] = {
139 @@ -1877,10 +1877,10 @@ static const struct freq_tbl ftbl_nss_po
140
141 static const struct clk_parent_data gcc_xo_uniphy2_tx_rx_ubi32_bias[] = {
142 { .fw_name = "xo", .name = "xo" },
143 - { .name = "uniphy2_gcc_tx_clk" },
144 - { .name = "uniphy2_gcc_rx_clk" },
145 + { .fw_name = "uniphy2_gcc_tx_clk", .name = "uniphy2_gcc_tx_clk" },
146 + { .fw_name = "uniphy2_gcc_rx_clk", .name = "uniphy2_gcc_rx_clk" },
147 { .hw = &ubi32_pll.clkr.hw },
148 - { .name = "bias_pll_cc_clk" },
149 + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
150 };
151
152 static const struct parent_map gcc_xo_uniphy2_tx_rx_ubi32_bias_map[] = {