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
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.
10 So, populate .fw_name for all parent clocks in parent_data.
12 Fixes: ae55ad32e273 ("clk: qcom: ipq8074: convert to parent data")
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
20 drivers/clk/qcom/gcc-ipq8074.c | 52 +++++++++++++++++-----------------
21 1 file changed, 26 insertions(+), 26 deletions(-)
23 --- a/drivers/clk/qcom/gcc-ipq8074.c
24 +++ b/drivers/clk/qcom/gcc-ipq8074.c
25 @@ -674,7 +674,7 @@ static struct clk_rcg2 pcie0_aux_clk_src
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" },
34 @@ -727,7 +727,7 @@ static struct clk_rcg2 pcie1_aux_clk_src
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" },
43 @@ -1131,7 +1131,7 @@ static const struct freq_tbl ftbl_nss_no
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 },
52 @@ -1356,7 +1356,7 @@ static const struct freq_tbl ftbl_nss_pp
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 @@ -1407,10 +1407,10 @@ static const struct freq_tbl ftbl_nss_po
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" },
74 static const struct parent_map gcc_xo_uniphy0_rx_tx_ubi32_bias_map[] = {
75 @@ -1459,10 +1459,10 @@ static const struct freq_tbl ftbl_nss_po
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" },
88 static const struct parent_map gcc_xo_uniphy0_tx_rx_ubi32_bias_map[] = {
89 @@ -1690,12 +1690,12 @@ static const struct freq_tbl ftbl_nss_po
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" },
106 static const struct parent_map
107 @@ -1752,12 +1752,12 @@ static const struct freq_tbl ftbl_nss_po
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" },
124 static const struct parent_map
125 @@ -1814,10 +1814,10 @@ static const struct freq_tbl ftbl_nss_po
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" },
138 static const struct parent_map gcc_xo_uniphy2_rx_tx_ubi32_bias_map[] = {
139 @@ -1871,10 +1871,10 @@ static const struct freq_tbl ftbl_nss_po
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" },
152 static const struct parent_map gcc_xo_uniphy2_tx_rx_ubi32_bias_map[] = {