linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 1/3] clk: mediatek: Add MUX_FLAGS macro
@ 2019-02-14 16:32 matthias.bgg
  2019-02-26 17:53 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: matthias.bgg @ 2019-02-14 16:32 UTC (permalink / raw)
  To: mturquette, sboyd, kevin-cw.chen, mars.cheng
  Cc: sean.wang, matthias.bgg, jasu, linux-clk, linux-kernel,
	linux-arm-kernel, linux-mediatek

From: Jasper Mattsson <jasu@njomotys.info>

This is required to mark outputs of certain MUXes as CLK_IS_CRITICAL.

Signed-off-by: Jasper Mattsson <jasu@njomotys.info>
Acked-by: Mars Cheng <mars.cheng@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
---
 drivers/clk/mediatek/clk-mtk.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h
index f83c2bbb677e..daab6ee94788 100644
--- a/drivers/clk/mediatek/clk-mtk.h
+++ b/drivers/clk/mediatek/clk-mtk.h
@@ -111,7 +111,11 @@ struct mtk_composite {
 	MUX_GATE_FLAGS(_id, _name, _parents, _reg, _shift, _width,	\
 		_gate, CLK_SET_RATE_PARENT)
 
-#define MUX(_id, _name, _parents, _reg, _shift, _width) {		\
+#define MUX(_id, _name, _parents, _reg, _shift, _width)			\
+	MUX_FLAGS(_id, _name, _parents, _reg,				\
+		  _shift, _width, CLK_SET_RATE_PARENT)
+
+#define MUX_FLAGS(_id, _name, _parents, _reg, _shift, _width, _flags) {	\
 		.id = _id,						\
 		.name = _name,						\
 		.mux_reg = _reg,					\
@@ -121,7 +125,7 @@ struct mtk_composite {
 		.divider_shift = -1,					\
 		.parent_names = _parents,				\
 		.num_parents = ARRAY_SIZE(_parents),			\
-		.flags = CLK_SET_RATE_PARENT,				\
+		.flags = _flags,				\
 	}
 
 #define DIV_GATE(_id, _name, _parent, _gate_reg, _gate_shift, _div_reg,	\
-- 
2.20.1


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

* Re: [PATCH v4 1/3] clk: mediatek: Add MUX_FLAGS macro
  2019-02-14 16:32 [PATCH v4 1/3] clk: mediatek: Add MUX_FLAGS macro matthias.bgg
@ 2019-02-26 17:53 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2019-02-26 17:53 UTC (permalink / raw)
  To: kevin-cw.chen, mars.cheng, matthias.bgg, mturquette
  Cc: sean.wang, matthias.bgg, jasu, linux-clk, linux-kernel,
	linux-arm-kernel, linux-mediatek

Quoting matthias.bgg@kernel.org (2019-02-14 08:32:18)
> From: Jasper Mattsson <jasu@njomotys.info>
> 
> This is required to mark outputs of certain MUXes as CLK_IS_CRITICAL.
> 
> Signed-off-by: Jasper Mattsson <jasu@njomotys.info>
> Acked-by: Mars Cheng <mars.cheng@mediatek.com>
> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
> ---

Applied to clk-next


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

end of thread, other threads:[~2019-02-26 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 16:32 [PATCH v4 1/3] clk: mediatek: Add MUX_FLAGS macro matthias.bgg
2019-02-26 17:53 ` 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).