Loading drivers/clk/clk.c +2 −1 Original line number Diff line number Diff line Loading @@ -2437,7 +2437,8 @@ static int __clk_init(struct device *dev, struct clk *clk_user) hlist_for_each_entry_safe(orphan, tmp2, &clk_orphan_list, child_node) { if (orphan->num_parents && orphan->ops->get_parent) { i = orphan->ops->get_parent(orphan->hw); if (!strcmp(core->name, orphan->parent_names[i])) if (i >= 0 && i < orphan->num_parents && !strcmp(core->name, orphan->parent_names[i])) clk_core_reparent(orphan, core); continue; } Loading drivers/clk/st/clkgen-fsyn.c +4 −4 Original line number Diff line number Diff line Loading @@ -307,7 +307,7 @@ static const struct clkgen_quadfs_data st_fs660c32_F_416 = { .get_rate = clk_fs660c32_dig_get_rate, }; static const struct clkgen_quadfs_data st_fs660c32_C_407 = { static const struct clkgen_quadfs_data st_fs660c32_C = { .nrst_present = true, .nrst = { CLKGEN_FIELD(0x2f0, 0x1, 0), CLKGEN_FIELD(0x2f0, 0x1, 1), Loading Loading @@ -350,7 +350,7 @@ static const struct clkgen_quadfs_data st_fs660c32_C_407 = { .get_rate = clk_fs660c32_dig_get_rate, }; static const struct clkgen_quadfs_data st_fs660c32_D_407 = { static const struct clkgen_quadfs_data st_fs660c32_D = { .nrst_present = true, .nrst = { CLKGEN_FIELD(0x2a0, 0x1, 0), CLKGEN_FIELD(0x2a0, 0x1, 1), Loading Loading @@ -1077,11 +1077,11 @@ static const struct of_device_id quadfs_of_match[] = { }, { .compatible = "st,stih407-quadfs660-C", .data = &st_fs660c32_C_407 .data = &st_fs660c32_C }, { .compatible = "st,stih407-quadfs660-D", .data = &st_fs660c32_D_407 .data = &st_fs660c32_D }, {} }; Loading drivers/clk/st/clkgen-pll.c +6 −6 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ static const struct clkgen_pll_data st_pll3200c32_407_a0 = { .ops = &stm_pll3200c32_ops, }; static const struct clkgen_pll_data st_pll3200c32_407_c0_0 = { static const struct clkgen_pll_data st_pll3200c32_cx_0 = { /* 407 C0 PLL0 */ .pdn_status = CLKGEN_FIELD(0x2a0, 0x1, 8), .locked_status = CLKGEN_FIELD(0x2a0, 0x1, 24), Loading @@ -205,7 +205,7 @@ static const struct clkgen_pll_data st_pll3200c32_407_c0_0 = { .ops = &stm_pll3200c32_ops, }; static const struct clkgen_pll_data st_pll3200c32_407_c0_1 = { static const struct clkgen_pll_data st_pll3200c32_cx_1 = { /* 407 C0 PLL1 */ .pdn_status = CLKGEN_FIELD(0x2c8, 0x1, 8), .locked_status = CLKGEN_FIELD(0x2c8, 0x1, 24), Loading Loading @@ -624,12 +624,12 @@ static const struct of_device_id c32_pll_of_match[] = { .data = &st_pll3200c32_407_a0, }, { .compatible = "st,stih407-plls-c32-c0_0", .data = &st_pll3200c32_407_c0_0, .compatible = "st,plls-c32-cx_0", .data = &st_pll3200c32_cx_0, }, { .compatible = "st,stih407-plls-c32-c0_1", .data = &st_pll3200c32_407_c0_1, .compatible = "st,plls-c32-cx_1", .data = &st_pll3200c32_cx_1, }, { .compatible = "st,stih407-plls-c32-a9", Loading Loading
drivers/clk/clk.c +2 −1 Original line number Diff line number Diff line Loading @@ -2437,7 +2437,8 @@ static int __clk_init(struct device *dev, struct clk *clk_user) hlist_for_each_entry_safe(orphan, tmp2, &clk_orphan_list, child_node) { if (orphan->num_parents && orphan->ops->get_parent) { i = orphan->ops->get_parent(orphan->hw); if (!strcmp(core->name, orphan->parent_names[i])) if (i >= 0 && i < orphan->num_parents && !strcmp(core->name, orphan->parent_names[i])) clk_core_reparent(orphan, core); continue; } Loading
drivers/clk/st/clkgen-fsyn.c +4 −4 Original line number Diff line number Diff line Loading @@ -307,7 +307,7 @@ static const struct clkgen_quadfs_data st_fs660c32_F_416 = { .get_rate = clk_fs660c32_dig_get_rate, }; static const struct clkgen_quadfs_data st_fs660c32_C_407 = { static const struct clkgen_quadfs_data st_fs660c32_C = { .nrst_present = true, .nrst = { CLKGEN_FIELD(0x2f0, 0x1, 0), CLKGEN_FIELD(0x2f0, 0x1, 1), Loading Loading @@ -350,7 +350,7 @@ static const struct clkgen_quadfs_data st_fs660c32_C_407 = { .get_rate = clk_fs660c32_dig_get_rate, }; static const struct clkgen_quadfs_data st_fs660c32_D_407 = { static const struct clkgen_quadfs_data st_fs660c32_D = { .nrst_present = true, .nrst = { CLKGEN_FIELD(0x2a0, 0x1, 0), CLKGEN_FIELD(0x2a0, 0x1, 1), Loading Loading @@ -1077,11 +1077,11 @@ static const struct of_device_id quadfs_of_match[] = { }, { .compatible = "st,stih407-quadfs660-C", .data = &st_fs660c32_C_407 .data = &st_fs660c32_C }, { .compatible = "st,stih407-quadfs660-D", .data = &st_fs660c32_D_407 .data = &st_fs660c32_D }, {} }; Loading
drivers/clk/st/clkgen-pll.c +6 −6 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ static const struct clkgen_pll_data st_pll3200c32_407_a0 = { .ops = &stm_pll3200c32_ops, }; static const struct clkgen_pll_data st_pll3200c32_407_c0_0 = { static const struct clkgen_pll_data st_pll3200c32_cx_0 = { /* 407 C0 PLL0 */ .pdn_status = CLKGEN_FIELD(0x2a0, 0x1, 8), .locked_status = CLKGEN_FIELD(0x2a0, 0x1, 24), Loading @@ -205,7 +205,7 @@ static const struct clkgen_pll_data st_pll3200c32_407_c0_0 = { .ops = &stm_pll3200c32_ops, }; static const struct clkgen_pll_data st_pll3200c32_407_c0_1 = { static const struct clkgen_pll_data st_pll3200c32_cx_1 = { /* 407 C0 PLL1 */ .pdn_status = CLKGEN_FIELD(0x2c8, 0x1, 8), .locked_status = CLKGEN_FIELD(0x2c8, 0x1, 24), Loading Loading @@ -624,12 +624,12 @@ static const struct of_device_id c32_pll_of_match[] = { .data = &st_pll3200c32_407_a0, }, { .compatible = "st,stih407-plls-c32-c0_0", .data = &st_pll3200c32_407_c0_0, .compatible = "st,plls-c32-cx_0", .data = &st_pll3200c32_cx_0, }, { .compatible = "st,stih407-plls-c32-c0_1", .data = &st_pll3200c32_407_c0_1, .compatible = "st,plls-c32-cx_1", .data = &st_pll3200c32_cx_1, }, { .compatible = "st,stih407-plls-c32-a9", Loading