linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers
@ 2018-12-06 21:58 Stephen Boyd
  2018-12-06 21:58 ` [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC Stephen Boyd
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Anders Berg, Geert Uytterhoeven,
	Jiancheng Xue, Jianguo Sun, Krzysztof Kozlowski, Kukjin Kim,
	Leo Yan, Linus Walleij, linux-renesas-soc, Sylwester Nawrocki,
	uclinux-h8-devel, Wei Yongjun, Yoshinori Sato

A collection of patches to remove CLK_IS_BASIC from drivers
that don't look to have any need for it. There are some files
outside of drivers/clk/ that aren't include here because I'll
send those patches to respective maintainers.

Cc: Anders Berg <anders.berg@lsi.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Jiancheng Xue <xuejiancheng@hisilicon.com>
Cc: Jianguo Sun <sunjianguo1@huawei.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: <linux-renesas-soc@vger.kernel.org>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: <uclinux-h8-devel@lists.sourceforge.jp>
Cc: Wei Yongjun <weiyongjun1@huawei.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>

Stephen Boyd (8):
  clk: renesas: Remove usage of CLK_IS_BASIC
  clk: st: Remove usage of CLK_IS_BASIC
  clk: axm5516: Remove usage of CLK_IS_BASIC
  clk: h8300: Remove usage of CLK_IS_BASIC
  clk: hisilicon: Remove usage of CLK_IS_BASIC
  clk: versatile: sp810: Remove usage of CLK_IS_BASIC
  clk: samsung: s3c2410: Remove usage of CLK_IS_BASIC
  clk: Loongson1: Remove usage of CLK_IS_BASIC

 drivers/clk/clk-axm5516.c                 | 2 --
 drivers/clk/h8300/clk-h8s2678.c           | 2 +-
 drivers/clk/hisilicon/clk-hi3620.c        | 2 +-
 drivers/clk/hisilicon/clk-hisi-phase.c    | 2 +-
 drivers/clk/hisilicon/clk-hix5hd2.c       | 2 +-
 drivers/clk/hisilicon/clkgate-separated.c | 2 +-
 drivers/clk/loongson1/clk.c               | 8 +++++---
 drivers/clk/renesas/clk-div6.c            | 2 +-
 drivers/clk/renesas/clk-mstp.c            | 2 +-
 drivers/clk/renesas/r9a06g032-clocks.c    | 8 ++++----
 drivers/clk/renesas/rcar-gen3-cpg.c       | 2 +-
 drivers/clk/renesas/renesas-cpg-mssr.c    | 2 +-
 drivers/clk/samsung/clk-s3c2410-dclk.c    | 2 +-
 drivers/clk/st/clk-flexgen.c              | 2 +-
 drivers/clk/st/clkgen-fsyn.c              | 4 ++--
 drivers/clk/st/clkgen-pll.c               | 2 +-
 drivers/clk/versatile/clk-sp810.c         | 2 +-
 17 files changed, 24 insertions(+), 24 deletions(-)

-- 
Sent by a computer through tubes

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
@ 2018-12-06 21:58 ` Stephen Boyd
  2018-12-07  8:27   ` Geert Uytterhoeven
  2018-12-13 19:48   ` Stephen Boyd
  2018-12-06 21:58 ` [PATCH 2/8] clk: st: " Stephen Boyd
                   ` (6 subsequent siblings)
  7 siblings, 2 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Geert Uytterhoeven, linux-renesas-soc

This flag doesn't look to be used by any code, just set in various clk
init structures and then never tested again. Remove it from these
drivers as it doesn't provide any benefit.

Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: <linux-renesas-soc@vger.kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/renesas/clk-div6.c         | 2 +-
 drivers/clk/renesas/clk-mstp.c         | 2 +-
 drivers/clk/renesas/r9a06g032-clocks.c | 8 ++++----
 drivers/clk/renesas/rcar-gen3-cpg.c    | 2 +-
 drivers/clk/renesas/renesas-cpg-mssr.c | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/clk/renesas/clk-div6.c b/drivers/clk/renesas/clk-div6.c
index 57c934164306..e98a9f5b3c90 100644
--- a/drivers/clk/renesas/clk-div6.c
+++ b/drivers/clk/renesas/clk-div6.c
@@ -274,7 +274,7 @@ struct clk * __init cpg_div6_register(const char *name,
 	/* Register the clock. */
 	init.name = name;
 	init.ops = &cpg_div6_clock_ops;
-	init.flags = CLK_IS_BASIC;
+	init.flags = 0;
 	init.parent_names = parent_names;
 	init.num_parents = valid_parents;
 
diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c
index 1c1768c2cc82..2ba6105937e3 100644
--- a/drivers/clk/renesas/clk-mstp.c
+++ b/drivers/clk/renesas/clk-mstp.c
@@ -158,7 +158,7 @@ static struct clk * __init cpg_mstp_clock_register(const char *name,
 
 	init.name = name;
 	init.ops = &cpg_mstp_clock_ops;
-	init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+	init.flags = CLK_SET_RATE_PARENT;
 	/* INTC-SYS is the module clock of the GIC, and must not be disabled */
 	if (!strcmp(name, "intc-sys")) {
 		pr_debug("MSTP %s setting CLK_IS_CRITICAL\n", name);
diff --git a/drivers/clk/renesas/r9a06g032-clocks.c b/drivers/clk/renesas/r9a06g032-clocks.c
index 6d2b56891559..658cb11b6f55 100644
--- a/drivers/clk/renesas/r9a06g032-clocks.c
+++ b/drivers/clk/renesas/r9a06g032-clocks.c
@@ -424,7 +424,7 @@ r9a06g032_register_gate(struct r9a06g032_priv *clocks,
 
 	init.name = desc->name;
 	init.ops = &r9a06g032_clk_gate_ops;
-	init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+	init.flags = CLK_SET_RATE_PARENT;
 	init.parent_names = parent_name ? &parent_name : NULL;
 	init.num_parents = parent_name ? 1 : 0;
 
@@ -595,7 +595,7 @@ r9a06g032_register_div(struct r9a06g032_priv *clocks,
 
 	init.name = desc->name;
 	init.ops = &r9a06g032_clk_div_ops;
-	init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+	init.flags = CLK_SET_RATE_PARENT;
 	init.parent_names = parent_name ? &parent_name : NULL;
 	init.num_parents = parent_name ? 1 : 0;
 
@@ -683,7 +683,7 @@ r9a06g032_register_bitsel(struct r9a06g032_priv *clocks,
 
 	init.name = desc->name;
 	init.ops = &clk_bitselect_ops;
-	init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+	init.flags = CLK_SET_RATE_PARENT;
 	init.parent_names = names;
 	init.num_parents = 2;
 
@@ -777,7 +777,7 @@ r9a06g032_register_dualgate(struct r9a06g032_priv *clocks,
 
 	init.name = desc->name;
 	init.ops = &r9a06g032_clk_dualgate_ops;
-	init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+	init.flags = CLK_SET_RATE_PARENT;
 	init.parent_names = &parent_name;
 	init.num_parents = 1;
 	g->hw.init = &init;
diff --git a/drivers/clk/renesas/rcar-gen3-cpg.c b/drivers/clk/renesas/rcar-gen3-cpg.c
index 4ba38f98cc7b..48e003c69cd1 100644
--- a/drivers/clk/renesas/rcar-gen3-cpg.c
+++ b/drivers/clk/renesas/rcar-gen3-cpg.c
@@ -368,7 +368,7 @@ static struct clk * __init cpg_sd_clk_register(const struct cpg_core_clk *core,
 
 	init.name = core->name;
 	init.ops = &cpg_sd_clock_ops;
-	init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+	init.flags = CLK_SET_RATE_PARENT;
 	init.parent_names = &parent_name;
 	init.num_parents = 1;
 
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c
index f7bb817420b4..30df0dc853f0 100644
--- a/drivers/clk/renesas/renesas-cpg-mssr.c
+++ b/drivers/clk/renesas/renesas-cpg-mssr.c
@@ -412,7 +412,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
 
 	init.name = mod->name;
 	init.ops = &cpg_mstp_clock_ops;
-	init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+	init.flags = CLK_SET_RATE_PARENT;
 	for (i = 0; i < info->num_crit_mod_clks; i++)
 		if (id == info->crit_mod_clks[i]) {
 			dev_dbg(dev, "MSTP %s setting CLK_IS_CRITICAL\n",
-- 
Sent by a computer through tubes


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 2/8] clk: st: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
  2018-12-06 21:58 ` [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC Stephen Boyd
@ 2018-12-06 21:58 ` Stephen Boyd
  2018-12-13 19:49   ` Stephen Boyd
  2018-12-06 21:58 ` [PATCH 3/8] clk: axm5516: " Stephen Boyd
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-kernel, linux-clk

This flag doesn't look to be used by any code, just set in various clk
init structures and then never tested again. Remove it from these
drivers as it doesn't provide any benefit.

Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/st/clk-flexgen.c | 2 +-
 drivers/clk/st/clkgen-fsyn.c | 4 ++--
 drivers/clk/st/clkgen-pll.c  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/clk/st/clk-flexgen.c b/drivers/clk/st/clk-flexgen.c
index 918ba3164da9..ca8d5350f94e 100644
--- a/drivers/clk/st/clk-flexgen.c
+++ b/drivers/clk/st/clk-flexgen.c
@@ -210,7 +210,7 @@ static struct clk *clk_register_flexgen(const char *name,
 
 	init.name = name;
 	init.ops = &flexgen_ops;
-	init.flags = CLK_IS_BASIC | CLK_GET_RATE_NOCACHE | flexgen_flags;
+	init.flags = CLK_GET_RATE_NOCACHE | flexgen_flags;
 	init.parent_names = parent_names;
 	init.num_parents = num_parents;
 
diff --git a/drivers/clk/st/clkgen-fsyn.c b/drivers/clk/st/clkgen-fsyn.c
index cfa000007622..946ceb14dbf7 100644
--- a/drivers/clk/st/clkgen-fsyn.c
+++ b/drivers/clk/st/clkgen-fsyn.c
@@ -404,7 +404,7 @@ static struct clk * __init st_clk_register_quadfs_pll(
 
 	init.name = name;
 	init.ops = quadfs->pll_ops;
-	init.flags = CLK_IS_BASIC | CLK_GET_RATE_NOCACHE;
+	init.flags = CLK_GET_RATE_NOCACHE;
 	init.parent_names = &parent_name;
 	init.num_parents = 1;
 
@@ -843,7 +843,7 @@ static struct clk * __init st_clk_register_quadfs_fsynth(
 
 	init.name = name;
 	init.ops = &st_quadfs_ops;
-	init.flags = flags | CLK_GET_RATE_NOCACHE | CLK_IS_BASIC;
+	init.flags = flags | CLK_GET_RATE_NOCACHE;
 	init.parent_names = &parent_name;
 	init.num_parents = 1;
 
diff --git a/drivers/clk/st/clkgen-pll.c b/drivers/clk/st/clkgen-pll.c
index 7a7106dc80bf..6930348ce843 100644
--- a/drivers/clk/st/clkgen-pll.c
+++ b/drivers/clk/st/clkgen-pll.c
@@ -613,7 +613,7 @@ static struct clk * __init clkgen_pll_register(const char *parent_name,
 	init.name = clk_name;
 	init.ops = pll_data->ops;
 
-	init.flags = pll_flags | CLK_IS_BASIC | CLK_GET_RATE_NOCACHE;
+	init.flags = pll_flags | CLK_GET_RATE_NOCACHE;
 	init.parent_names = &parent_name;
 	init.num_parents  = 1;
 
-- 
Sent by a computer through tubes


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 3/8] clk: axm5516: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
  2018-12-06 21:58 ` [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC Stephen Boyd
  2018-12-06 21:58 ` [PATCH 2/8] clk: st: " Stephen Boyd
@ 2018-12-06 21:58 ` Stephen Boyd
  2018-12-13 19:49   ` Stephen Boyd
  2018-12-06 21:58 ` [PATCH 4/8] clk: h8300: " Stephen Boyd
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-kernel, linux-clk, Anders Berg

This flag doesn't look to be used by any code, just set in various clk
init structures and then never tested again. Remove it from these
drivers as it doesn't provide any benefit.

Cc: Anders Berg <anders.berg@lsi.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/clk-axm5516.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/clk/clk-axm5516.c b/drivers/clk/clk-axm5516.c
index 5d7ae333257e..98e0c9ba7b61 100644
--- a/drivers/clk/clk-axm5516.c
+++ b/drivers/clk/clk-axm5516.c
@@ -311,7 +311,6 @@ static struct axxia_divclk clk_per_div = {
 			"clk_sm1_pll"
 		},
 		.num_parents = 1,
-		.flags = CLK_IS_BASIC,
 		.ops = &axxia_divclk_ops,
 	},
 	.reg   = 0x1000c,
@@ -326,7 +325,6 @@ static struct axxia_divclk clk_mmc_div = {
 			"clk_sm1_pll"
 		},
 		.num_parents = 1,
-		.flags = CLK_IS_BASIC,
 		.ops = &axxia_divclk_ops,
 	},
 	.reg   = 0x1000c,
-- 
Sent by a computer through tubes


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 4/8] clk: h8300: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
                   ` (2 preceding siblings ...)
  2018-12-06 21:58 ` [PATCH 3/8] clk: axm5516: " Stephen Boyd
@ 2018-12-06 21:58 ` Stephen Boyd
  2018-12-13 19:49   ` Stephen Boyd
  2018-12-06 21:58 ` [PATCH 5/8] clk: hisilicon: " Stephen Boyd
                   ` (3 subsequent siblings)
  7 siblings, 1 reply; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Yoshinori Sato, uclinux-h8-devel

This flag doesn't look to be used by any code, just set in various clk
init structures and then never tested again. Remove it from these
drivers as it doesn't provide any benefit.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: <uclinux-h8-devel@lists.sourceforge.jp>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/h8300/clk-h8s2678.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/h8300/clk-h8s2678.c b/drivers/clk/h8300/clk-h8s2678.c
index b68045d8b921..c7ae653c8a16 100644
--- a/drivers/clk/h8300/clk-h8s2678.c
+++ b/drivers/clk/h8300/clk-h8s2678.c
@@ -117,7 +117,7 @@ static void __init h8s2678_pll_clk_setup(struct device_node *node)
 	parent_name = of_clk_get_parent_name(node, 0);
 	init.name = clk_name;
 	init.ops = &pll_ops;
-	init.flags = CLK_IS_BASIC;
+	init.flags = 0;
 	init.parent_names = &parent_name;
 	init.num_parents = 1;
 	pll_clock->hw.init = &init;
-- 
Sent by a computer through tubes


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 5/8] clk: hisilicon: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
                   ` (3 preceding siblings ...)
  2018-12-06 21:58 ` [PATCH 4/8] clk: h8300: " Stephen Boyd
@ 2018-12-06 21:58 ` Stephen Boyd
  2018-12-13 19:49   ` Stephen Boyd
  2018-12-06 21:58 ` [PATCH 6/8] clk: versatile: sp810: " Stephen Boyd
                   ` (2 subsequent siblings)
  7 siblings, 1 reply; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Jiancheng Xue, Leo Yan, Jianguo Sun,
	Wei Yongjun

This flag doesn't look to be used by any code, just set in various clk
init structures and then never tested again. Remove it from these
drivers as it doesn't provide any benefit.

Cc: Jiancheng Xue <xuejiancheng@hisilicon.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Jianguo Sun <sunjianguo1@huawei.com>
Cc: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/hisilicon/clk-hi3620.c        | 2 +-
 drivers/clk/hisilicon/clk-hisi-phase.c    | 2 +-
 drivers/clk/hisilicon/clk-hix5hd2.c       | 2 +-
 drivers/clk/hisilicon/clkgate-separated.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/clk/hisilicon/clk-hi3620.c b/drivers/clk/hisilicon/clk-hi3620.c
index 77072c7778b9..2eda9bdf6d03 100644
--- a/drivers/clk/hisilicon/clk-hi3620.c
+++ b/drivers/clk/hisilicon/clk-hi3620.c
@@ -435,7 +435,7 @@ static struct clk *hisi_register_clk_mmc(struct hisi_mmc_clock *mmc_clk,
 
 	init.name = mmc_clk->name;
 	init.ops = &clk_mmc_ops;
-	init.flags = mmc_clk->flags | CLK_IS_BASIC;
+	init.flags = mmc_clk->flags;
 	init.parent_names = (mmc_clk->parent_name ? &mmc_clk->parent_name : NULL);
 	init.num_parents = (mmc_clk->parent_name ? 1 : 0);
 	mclk->hw.init = &init;
diff --git a/drivers/clk/hisilicon/clk-hisi-phase.c b/drivers/clk/hisilicon/clk-hisi-phase.c
index 5bce9297b78b..5fdc267bb2da 100644
--- a/drivers/clk/hisilicon/clk-hisi-phase.c
+++ b/drivers/clk/hisilicon/clk-hisi-phase.c
@@ -103,7 +103,7 @@ struct clk *clk_register_hisi_phase(struct device *dev,
 
 	init.name = clks->name;
 	init.ops = &clk_phase_ops;
-	init.flags = clks->flags | CLK_IS_BASIC;
+	init.flags = clks->flags;
 	init.parent_names = clks->parent_names ? &clks->parent_names : NULL;
 	init.num_parents = clks->parent_names ? 1 : 0;
 
diff --git a/drivers/clk/hisilicon/clk-hix5hd2.c b/drivers/clk/hisilicon/clk-hix5hd2.c
index 9584f0c32dda..659bd5f493b8 100644
--- a/drivers/clk/hisilicon/clk-hix5hd2.c
+++ b/drivers/clk/hisilicon/clk-hix5hd2.c
@@ -274,7 +274,7 @@ hix5hd2_clk_register_complex(struct hix5hd2_complex_clock *clks, int nums,
 		else
 			init.ops = &clk_complex_ops;
 
-		init.flags = CLK_IS_BASIC;
+		init.flags = 0;
 		init.parent_names =
 			(clks[i].parent_name ? &clks[i].parent_name : NULL);
 		init.num_parents = (clks[i].parent_name ? 1 : 0);
diff --git a/drivers/clk/hisilicon/clkgate-separated.c b/drivers/clk/hisilicon/clkgate-separated.c
index f36bdef91831..ae84884dc749 100644
--- a/drivers/clk/hisilicon/clkgate-separated.c
+++ b/drivers/clk/hisilicon/clkgate-separated.c
@@ -110,7 +110,7 @@ struct clk *hisi_register_clkgate_sep(struct device *dev, const char *name,
 
 	init.name = name;
 	init.ops = &clkgate_separated_ops;
-	init.flags = flags | CLK_IS_BASIC;
+	init.flags = flags;
 	init.parent_names = (parent_name ? &parent_name : NULL);
 	init.num_parents = (parent_name ? 1 : 0);
 
-- 
Sent by a computer through tubes


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 6/8] clk: versatile: sp810: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
                   ` (4 preceding siblings ...)
  2018-12-06 21:58 ` [PATCH 5/8] clk: hisilicon: " Stephen Boyd
@ 2018-12-06 21:58 ` Stephen Boyd
  2018-12-06 22:03   ` Linus Walleij
  2018-12-13 19:49   ` Stephen Boyd
  2018-12-06 21:58 ` [PATCH 7/8] clk: samsung: s3c2410: " Stephen Boyd
  2018-12-06 21:58 ` [PATCH 8/8] clk: Loongson1: " Stephen Boyd
  7 siblings, 2 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-kernel, linux-clk, Linus Walleij

This flag doesn't look to be used by any code, just set in the clk init
structure and then never tested again. Remove it from this driver as it
doesn't provide any benefit.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/versatile/clk-sp810.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/versatile/clk-sp810.c b/drivers/clk/versatile/clk-sp810.c
index 1fe1e8d970cf..c2b6bb814742 100644
--- a/drivers/clk/versatile/clk-sp810.c
+++ b/drivers/clk/versatile/clk-sp810.c
@@ -111,7 +111,7 @@ static void __init clk_sp810_of_setup(struct device_node *node)
 
 	init.name = name;
 	init.ops = &clk_sp810_timerclken_ops;
-	init.flags = CLK_IS_BASIC;
+	init.flags = 0;
 	init.parent_names = parent_names;
 	init.num_parents = num;
 
-- 
Sent by a computer through tubes


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 7/8] clk: samsung: s3c2410: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
                   ` (5 preceding siblings ...)
  2018-12-06 21:58 ` [PATCH 6/8] clk: versatile: sp810: " Stephen Boyd
@ 2018-12-06 21:58 ` Stephen Boyd
  2018-12-07  8:45   ` Krzysztof Kozlowski
  2018-12-13 19:49   ` Stephen Boyd
  2018-12-06 21:58 ` [PATCH 8/8] clk: Loongson1: " Stephen Boyd
  7 siblings, 2 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Kukjin Kim, Krzysztof Kozlowski,
	Sylwester Nawrocki

This flag doesn't look to be used by any code, just set in the clk init
structure and then never tested again. Remove it from this drivers as it
doesn't provide any benefit.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/samsung/clk-s3c2410-dclk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/samsung/clk-s3c2410-dclk.c b/drivers/clk/samsung/clk-s3c2410-dclk.c
index 0d92f3e5e3d9..82f8ae22fd34 100644
--- a/drivers/clk/samsung/clk-s3c2410-dclk.c
+++ b/drivers/clk/samsung/clk-s3c2410-dclk.c
@@ -105,7 +105,7 @@ static struct clk_hw *s3c24xx_register_clkout(struct device *dev,
 
 	init.name = name;
 	init.ops = &s3c24xx_clkout_ops;
-	init.flags = CLK_IS_BASIC;
+	init.flags = 0;
 	init.parent_names = parent_names;
 	init.num_parents = num_parents;
 
-- 
Sent by a computer through tubes


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 8/8] clk: Loongson1: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
                   ` (6 preceding siblings ...)
  2018-12-06 21:58 ` [PATCH 7/8] clk: samsung: s3c2410: " Stephen Boyd
@ 2018-12-06 21:58 ` Stephen Boyd
  2018-12-13 19:49   ` Stephen Boyd
  7 siblings, 1 reply; 21+ messages in thread
From: Stephen Boyd @ 2018-12-06 21:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-kernel, linux-clk

This flag doesn't look to be used by any code, just set in the clk init
structure and then never tested again. Remove it from this driver as it
doesn't provide any benefit. Also remove parenthesis nearby that are not
needed and include clk.h to fix a sparse warning about static function
definition.

Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/loongson1/clk.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/loongson1/clk.c b/drivers/clk/loongson1/clk.c
index cfcfd143fccb..983ce9f6edbb 100644
--- a/drivers/clk/loongson1/clk.c
+++ b/drivers/clk/loongson1/clk.c
@@ -10,6 +10,8 @@
 #include <linux/clk-provider.h>
 #include <linux/slab.h>
 
+#include "clk.h"
+
 struct clk_hw *__init clk_hw_register_pll(struct device *dev,
 					  const char *name,
 					  const char *parent_name,
@@ -27,9 +29,9 @@ struct clk_hw *__init clk_hw_register_pll(struct device *dev,
 
 	init.name = name;
 	init.ops = ops;
-	init.flags = flags | CLK_IS_BASIC;
-	init.parent_names = (parent_name ? &parent_name : NULL);
-	init.num_parents = (parent_name ? 1 : 0);
+	init.flags = flags;
+	init.parent_names = parent_name ? &parent_name : NULL;
+	init.num_parents = parent_name ? 1 : 0;
 	hw->init = &init;
 
 	/* register the clock */
-- 
Sent by a computer through tubes


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* Re: [PATCH 6/8] clk: versatile: sp810: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 6/8] clk: versatile: sp810: " Stephen Boyd
@ 2018-12-06 22:03   ` Linus Walleij
  2018-12-13 19:49   ` Stephen Boyd
  1 sibling, 0 replies; 21+ messages in thread
From: Linus Walleij @ 2018-12-06 22:03 UTC (permalink / raw)
  To: Stephen Boyd; +Cc: Michael Turquette, linux-kernel, linux-clk

On Thu, Dec 6, 2018 at 10:59 PM Stephen Boyd <sboyd@kernel.org> wrote:

> This flag doesn't look to be used by any code, just set in the clk init
> structure and then never tested again. Remove it from this driver as it
> doesn't provide any benefit.
>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Can't help but wonder what semantic it was supposed to have.
It seems a bit vague now.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC Stephen Boyd
@ 2018-12-07  8:27   ` Geert Uytterhoeven
  2018-12-07 20:41     ` Stephen Boyd
  2018-12-13 19:48   ` Stephen Boyd
  1 sibling, 1 reply; 21+ messages in thread
From: Geert Uytterhoeven @ 2018-12-07  8:27 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Michael Turquette, Linux Kernel Mailing List, linux-clk,
	Geert Uytterhoeven, Linux-Renesas

Hi Stephen,

On Thu, Dec 6, 2018 at 10:59 PM Stephen Boyd <sboyd@kernel.org> wrote:
> This flag doesn't look to be used by any code, just set in various clk
> init structures and then never tested again. Remove it from these
> drivers as it doesn't provide any benefit.
>
> Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: <linux-renesas-soc@vger.kernel.org>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>

Thanks!

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

I assume you want to apply this yourself, with the rest of the series?

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 7/8] clk: samsung: s3c2410: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 7/8] clk: samsung: s3c2410: " Stephen Boyd
@ 2018-12-07  8:45   ` Krzysztof Kozlowski
  2018-12-13 19:49   ` Stephen Boyd
  1 sibling, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2018-12-07  8:45 UTC (permalink / raw)
  To: sboyd; +Cc: mturquette, linux-kernel, linux-clk, kgene, s.nawrocki

On Thu, 6 Dec 2018 at 22:59, Stephen Boyd <sboyd@kernel.org> wrote:
>
> This flag doesn't look to be used by any code, just set in the clk init
> structure and then never tested again. Remove it from this drivers as it
> doesn't provide any benefit.
>
> Cc: Kukjin Kim <kgene@kernel.org>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---
>  drivers/clk/samsung/clk-s3c2410-dclk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC
  2018-12-07  8:27   ` Geert Uytterhoeven
@ 2018-12-07 20:41     ` Stephen Boyd
  0 siblings, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-07 20:41 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Michael Turquette, Linux Kernel Mailing List, linux-clk,
	Geert Uytterhoeven, Linux-Renesas

Quoting Geert Uytterhoeven (2018-12-07 00:27:11)
> Hi Stephen,
> 
> On Thu, Dec 6, 2018 at 10:59 PM Stephen Boyd <sboyd@kernel.org> wrote:
> > This flag doesn't look to be used by any code, just set in various clk
> > init structures and then never tested again. Remove it from these
> > drivers as it doesn't provide any benefit.
> >
> > Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> > Cc: <linux-renesas-soc@vger.kernel.org>
> > Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> 
> Thanks!
> 
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> I assume you want to apply this yourself, with the rest of the series?
> 

Yes I'll apply it to clk-next. Thanks.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC Stephen Boyd
  2018-12-07  8:27   ` Geert Uytterhoeven
@ 2018-12-13 19:48   ` Stephen Boyd
  1 sibling, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-13 19:48 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Geert Uytterhoeven, linux-renesas-soc

Quoting Stephen Boyd (2018-12-06 13:58:51)
> This flag doesn't look to be used by any code, just set in various clk
> init structures and then never tested again. Remove it from these
> drivers as it doesn't provide any benefit.
> 
> Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: <linux-renesas-soc@vger.kernel.org>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 2/8] clk: st: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 2/8] clk: st: " Stephen Boyd
@ 2018-12-13 19:49   ` Stephen Boyd
  0 siblings, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-13 19:49 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-kernel, linux-clk

Quoting Stephen Boyd (2018-12-06 13:58:52)
> This flag doesn't look to be used by any code, just set in various clk
> init structures and then never tested again. Remove it from these
> drivers as it doesn't provide any benefit.
> 
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 3/8] clk: axm5516: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 3/8] clk: axm5516: " Stephen Boyd
@ 2018-12-13 19:49   ` Stephen Boyd
  0 siblings, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-13 19:49 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-kernel, linux-clk, Anders Berg

Quoting Stephen Boyd (2018-12-06 13:58:53)
> This flag doesn't look to be used by any code, just set in various clk
> init structures and then never tested again. Remove it from these
> drivers as it doesn't provide any benefit.
> 
> Cc: Anders Berg <anders.berg@lsi.com>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 4/8] clk: h8300: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 4/8] clk: h8300: " Stephen Boyd
@ 2018-12-13 19:49   ` Stephen Boyd
  0 siblings, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-13 19:49 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Yoshinori Sato, uclinux-h8-devel

Quoting Stephen Boyd (2018-12-06 13:58:54)
> This flag doesn't look to be used by any code, just set in various clk
> init structures and then never tested again. Remove it from these
> drivers as it doesn't provide any benefit.
> 
> Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
> Cc: <uclinux-h8-devel@lists.sourceforge.jp>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 5/8] clk: hisilicon: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 5/8] clk: hisilicon: " Stephen Boyd
@ 2018-12-13 19:49   ` Stephen Boyd
  0 siblings, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-13 19:49 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Jiancheng Xue, Leo Yan, Jianguo Sun,
	Wei Yongjun

Quoting Stephen Boyd (2018-12-06 13:58:55)
> This flag doesn't look to be used by any code, just set in various clk
> init structures and then never tested again. Remove it from these
> drivers as it doesn't provide any benefit.
> 
> Cc: Jiancheng Xue <xuejiancheng@hisilicon.com>
> Cc: Leo Yan <leo.yan@linaro.org>
> Cc: Jianguo Sun <sunjianguo1@huawei.com>
> Cc: Wei Yongjun <weiyongjun1@huawei.com>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 6/8] clk: versatile: sp810: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 6/8] clk: versatile: sp810: " Stephen Boyd
  2018-12-06 22:03   ` Linus Walleij
@ 2018-12-13 19:49   ` Stephen Boyd
  1 sibling, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-13 19:49 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-kernel, linux-clk, Linus Walleij

Quoting Stephen Boyd (2018-12-06 13:58:56)
> This flag doesn't look to be used by any code, just set in the clk init
> structure and then never tested again. Remove it from this driver as it
> doesn't provide any benefit.
> 
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 7/8] clk: samsung: s3c2410: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 7/8] clk: samsung: s3c2410: " Stephen Boyd
  2018-12-07  8:45   ` Krzysztof Kozlowski
@ 2018-12-13 19:49   ` Stephen Boyd
  1 sibling, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-13 19:49 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-kernel, linux-clk, Kukjin Kim, Krzysztof Kozlowski,
	Sylwester Nawrocki

Quoting Stephen Boyd (2018-12-06 13:58:57)
> This flag doesn't look to be used by any code, just set in the clk init
> structure and then never tested again. Remove it from this drivers as it
> doesn't provide any benefit.
> 
> Cc: Kukjin Kim <kgene@kernel.org>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 8/8] clk: Loongson1: Remove usage of CLK_IS_BASIC
  2018-12-06 21:58 ` [PATCH 8/8] clk: Loongson1: " Stephen Boyd
@ 2018-12-13 19:49   ` Stephen Boyd
  0 siblings, 0 replies; 21+ messages in thread
From: Stephen Boyd @ 2018-12-13 19:49 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-kernel, linux-clk

Quoting Stephen Boyd (2018-12-06 13:58:58)
> This flag doesn't look to be used by any code, just set in the clk init
> structure and then never tested again. Remove it from this driver as it
> doesn't provide any benefit. Also remove parenthesis nearby that are not
> needed and include clk.h to fix a sparse warning about static function
> definition.
> 
> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2018-12-13 19:49 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-06 21:58 [PATCH 0/8] Remove CLK_IS_BASIC usage from clk drivers Stephen Boyd
2018-12-06 21:58 ` [PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC Stephen Boyd
2018-12-07  8:27   ` Geert Uytterhoeven
2018-12-07 20:41     ` Stephen Boyd
2018-12-13 19:48   ` Stephen Boyd
2018-12-06 21:58 ` [PATCH 2/8] clk: st: " Stephen Boyd
2018-12-13 19:49   ` Stephen Boyd
2018-12-06 21:58 ` [PATCH 3/8] clk: axm5516: " Stephen Boyd
2018-12-13 19:49   ` Stephen Boyd
2018-12-06 21:58 ` [PATCH 4/8] clk: h8300: " Stephen Boyd
2018-12-13 19:49   ` Stephen Boyd
2018-12-06 21:58 ` [PATCH 5/8] clk: hisilicon: " Stephen Boyd
2018-12-13 19:49   ` Stephen Boyd
2018-12-06 21:58 ` [PATCH 6/8] clk: versatile: sp810: " Stephen Boyd
2018-12-06 22:03   ` Linus Walleij
2018-12-13 19:49   ` Stephen Boyd
2018-12-06 21:58 ` [PATCH 7/8] clk: samsung: s3c2410: " Stephen Boyd
2018-12-07  8:45   ` Krzysztof Kozlowski
2018-12-13 19:49   ` Stephen Boyd
2018-12-06 21:58 ` [PATCH 8/8] clk: Loongson1: " Stephen Boyd
2018-12-13 19:49   ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).