1 From e95e825333eda345d812b461301dad50021d5487 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Sat, 26 Feb 2022 14:52:24 +0100
4 Subject: [PATCH 04/14] clk: qcom: gcc-ipq806x: fix wrong naming for
7 Parent gcc_pxo_pll8_pll0 had the parent definition and parent map
8 swapped. Fix this naming error.
10 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
11 Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
12 Reviewed-by: Stephen Boyd <sboyd@kernel.org>
13 Tested-by: Jonathan McDowell <noodles@earth.li>
14 Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
15 Link: https://lore.kernel.org/r/20220226135235.10051-5-ansuelsmth@gmail.com
17 drivers/clk/qcom/gcc-ipq806x.c | 20 ++++++++++----------
18 1 file changed, 10 insertions(+), 10 deletions(-)
20 --- a/drivers/clk/qcom/gcc-ipq806x.c
21 +++ b/drivers/clk/qcom/gcc-ipq806x.c
22 @@ -291,13 +291,13 @@ static const char * const gcc_pxo_pll3[]
26 -static const struct parent_map gcc_pxo_pll8_pll0[] = {
27 +static const struct parent_map gcc_pxo_pll8_pll0_map[] = {
33 -static const char * const gcc_pxo_pll8_pll0_map[] = {
34 +static const char * const gcc_pxo_pll8_pll0[] = {
38 @@ -1993,7 +1993,7 @@ static struct clk_rcg usb30_master_clk_s
42 - .parent_map = gcc_pxo_pll8_pll0,
43 + .parent_map = gcc_pxo_pll8_pll0_map,
45 .freq_tbl = clk_tbl_usb30_master,
47 @@ -2001,7 +2001,7 @@ static struct clk_rcg usb30_master_clk_s
48 .enable_mask = BIT(11),
49 .hw.init = &(struct clk_init_data){
50 .name = "usb30_master_ref_src",
51 - .parent_names = gcc_pxo_pll8_pll0_map,
52 + .parent_names = gcc_pxo_pll8_pll0,
55 .flags = CLK_SET_RATE_GATE,
56 @@ -2063,7 +2063,7 @@ static struct clk_rcg usb30_utmi_clk = {
60 - .parent_map = gcc_pxo_pll8_pll0,
61 + .parent_map = gcc_pxo_pll8_pll0_map,
63 .freq_tbl = clk_tbl_usb30_utmi,
65 @@ -2071,7 +2071,7 @@ static struct clk_rcg usb30_utmi_clk = {
66 .enable_mask = BIT(11),
67 .hw.init = &(struct clk_init_data){
68 .name = "usb30_utmi_clk",
69 - .parent_names = gcc_pxo_pll8_pll0_map,
70 + .parent_names = gcc_pxo_pll8_pll0,
73 .flags = CLK_SET_RATE_GATE,
74 @@ -2133,7 +2133,7 @@ static struct clk_rcg usb_hs1_xcvr_clk_s
78 - .parent_map = gcc_pxo_pll8_pll0,
79 + .parent_map = gcc_pxo_pll8_pll0_map,
81 .freq_tbl = clk_tbl_usb,
83 @@ -2141,7 +2141,7 @@ static struct clk_rcg usb_hs1_xcvr_clk_s
84 .enable_mask = BIT(11),
85 .hw.init = &(struct clk_init_data){
86 .name = "usb_hs1_xcvr_src",
87 - .parent_names = gcc_pxo_pll8_pll0_map,
88 + .parent_names = gcc_pxo_pll8_pll0,
91 .flags = CLK_SET_RATE_GATE,
92 @@ -2197,7 +2197,7 @@ static struct clk_rcg usb_fs1_xcvr_clk_s
96 - .parent_map = gcc_pxo_pll8_pll0,
97 + .parent_map = gcc_pxo_pll8_pll0_map,
99 .freq_tbl = clk_tbl_usb,
101 @@ -2205,7 +2205,7 @@ static struct clk_rcg usb_fs1_xcvr_clk_s
102 .enable_mask = BIT(11),
103 .hw.init = &(struct clk_init_data){
104 .name = "usb_fs1_xcvr_src",
105 - .parent_names = gcc_pxo_pll8_pll0_map,
106 + .parent_names = gcc_pxo_pll8_pll0,
109 .flags = CLK_SET_RATE_GATE,