Skip to content

Commit 69a4d0b

Browse files
committed
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Pull clk fixes from Stephen Boyd: "A small collection of fixes. I'll make another sweep soon to look for more fixes for this -rc series. - Mark device node const in of_clk_get_parent APIs to ease landing changes in users later - Fix flag for Qualcomm SC7180 video clocks where we thought it would never turn off but actually hardware takes care of it - Remove disp_cc_mdss_rscc_ahb_clk on Qualcomm SC7180 SoCs because this clk is always on anyway - Correct some bad dt-binding numbers for i.MX8MN SoCs" * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: clk: imx8mn: Fix incorrect clock defines clk: qcom: dispcc: Remove support of disp_cc_mdss_rscc_ahb_clk clk: qcom: videocc: Update the clock flag for video_cc_vcodec0_core_clk of: clk: Make of_clk_get_parent_{count,name}() parameter const
2 parents fffb08b + 2005544 commit 69a4d0b

File tree

5 files changed

+9
-28
lines changed

5 files changed

+9
-28
lines changed

drivers/clk/clk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4713,7 +4713,7 @@ EXPORT_SYMBOL(of_clk_get_by_name);
47134713
*
47144714
* Returns: The number of clocks that are possible parents of this node
47154715
*/
4716-
unsigned int of_clk_get_parent_count(struct device_node *np)
4716+
unsigned int of_clk_get_parent_count(const struct device_node *np)
47174717
{
47184718
int count;
47194719

@@ -4725,7 +4725,7 @@ unsigned int of_clk_get_parent_count(struct device_node *np)
47254725
}
47264726
EXPORT_SYMBOL_GPL(of_clk_get_parent_count);
47274727

4728-
const char *of_clk_get_parent_name(struct device_node *np, int index)
4728+
const char *of_clk_get_parent_name(const struct device_node *np, int index)
47294729
{
47304730
struct of_phandle_args clkspec;
47314731
struct property *prop;

drivers/clk/qcom/dispcc-sc7180.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -592,24 +592,6 @@ static struct clk_branch disp_cc_mdss_rot_clk = {
592592
},
593593
};
594594

595-
static struct clk_branch disp_cc_mdss_rscc_ahb_clk = {
596-
.halt_reg = 0x400c,
597-
.halt_check = BRANCH_HALT,
598-
.clkr = {
599-
.enable_reg = 0x400c,
600-
.enable_mask = BIT(0),
601-
.hw.init = &(struct clk_init_data){
602-
.name = "disp_cc_mdss_rscc_ahb_clk",
603-
.parent_data = &(const struct clk_parent_data){
604-
.hw = &disp_cc_mdss_ahb_clk_src.clkr.hw,
605-
},
606-
.num_parents = 1,
607-
.flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT,
608-
.ops = &clk_branch2_ops,
609-
},
610-
},
611-
};
612-
613595
static struct clk_branch disp_cc_mdss_rscc_vsync_clk = {
614596
.halt_reg = 0x4008,
615597
.halt_check = BRANCH_HALT,
@@ -687,7 +669,6 @@ static struct clk_regmap *disp_cc_sc7180_clocks[] = {
687669
[DISP_CC_MDSS_PCLK0_CLK_SRC] = &disp_cc_mdss_pclk0_clk_src.clkr,
688670
[DISP_CC_MDSS_ROT_CLK] = &disp_cc_mdss_rot_clk.clkr,
689671
[DISP_CC_MDSS_ROT_CLK_SRC] = &disp_cc_mdss_rot_clk_src.clkr,
690-
[DISP_CC_MDSS_RSCC_AHB_CLK] = &disp_cc_mdss_rscc_ahb_clk.clkr,
691672
[DISP_CC_MDSS_RSCC_VSYNC_CLK] = &disp_cc_mdss_rscc_vsync_clk.clkr,
692673
[DISP_CC_MDSS_VSYNC_CLK] = &disp_cc_mdss_vsync_clk.clkr,
693674
[DISP_CC_MDSS_VSYNC_CLK_SRC] = &disp_cc_mdss_vsync_clk_src.clkr,

drivers/clk/qcom/videocc-sc7180.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static struct clk_branch video_cc_vcodec0_axi_clk = {
9797

9898
static struct clk_branch video_cc_vcodec0_core_clk = {
9999
.halt_reg = 0x890,
100-
.halt_check = BRANCH_HALT,
100+
.halt_check = BRANCH_HALT_VOTED,
101101
.clkr = {
102102
.enable_reg = 0x890,
103103
.enable_mask = BIT(0),

include/dt-bindings/clock/imx8mn-clock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@
122122
#define IMX8MN_CLK_I2C1 105
123123
#define IMX8MN_CLK_I2C2 106
124124
#define IMX8MN_CLK_I2C3 107
125-
#define IMX8MN_CLK_I2C4 118
126-
#define IMX8MN_CLK_UART1 119
125+
#define IMX8MN_CLK_I2C4 108
126+
#define IMX8MN_CLK_UART1 109
127127
#define IMX8MN_CLK_UART2 110
128128
#define IMX8MN_CLK_UART3 111
129129
#define IMX8MN_CLK_UART4 112

include/linux/of_clk.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ struct of_device_id;
1111

1212
#if defined(CONFIG_COMMON_CLK) && defined(CONFIG_OF)
1313

14-
unsigned int of_clk_get_parent_count(struct device_node *np);
15-
const char *of_clk_get_parent_name(struct device_node *np, int index);
14+
unsigned int of_clk_get_parent_count(const struct device_node *np);
15+
const char *of_clk_get_parent_name(const struct device_node *np, int index);
1616
void of_clk_init(const struct of_device_id *matches);
1717

1818
#else /* !CONFIG_COMMON_CLK || !CONFIG_OF */
1919

20-
static inline unsigned int of_clk_get_parent_count(struct device_node *np)
20+
static inline unsigned int of_clk_get_parent_count(const struct device_node *np)
2121
{
2222
return 0;
2323
}
24-
static inline const char *of_clk_get_parent_name(struct device_node *np,
24+
static inline const char *of_clk_get_parent_name(const struct device_node *np,
2525
int index)
2626
{
2727
return NULL;

0 commit comments

Comments
 (0)