linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aisheng Dong <aisheng.dong@nxp.com>
To: Stephen Boyd <sboyd@kernel.org>,
	"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>
Cc: "linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"mturquette@baylibre.com" <mturquette@baylibre.com>,
	"shawnguo@kernel.org" <shawnguo@kernel.org>,
	Fabio Estevam <fabio.estevam@nxp.com>,
	dl-linux-imx <linux-imx@nxp.com>,
	"kernel@pengutronix.de" <kernel@pengutronix.de>
Subject: RE: [PATCH V11 2/7] clk: imx: add scu clock common part
Date: Fri, 14 Dec 2018 01:44:55 +0000	[thread overview]
Message-ID: <AM0PR04MB4211D584BCE4B6D06D57637280A10@AM0PR04MB4211.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <154475103791.19322.8783777114832958727@swboyd.mtv.corp.google.com>



> -----Original Message-----
> From: Stephen Boyd [mailto:sboyd@kernel.org]
> Sent: Friday, December 14, 2018 9:31 AM
> To: linux-clk@vger.kernel.org; Aisheng Dong <aisheng.dong@nxp.com>
> Cc: linux-arm-kernel@lists.infradead.org; mturquette@baylibre.com;
> shawnguo@kernel.org; Fabio Estevam <fabio.estevam@nxp.com>; dl-linux-imx
> <linux-imx@nxp.com>; kernel@pengutronix.de
> Subject: RE: [PATCH V11 2/7] clk: imx: add scu clock common part
> 
> Quoting Aisheng Dong (2018-12-13 03:19:26)
> > > -----Original Message-----
> > > From: Stephen Boyd [mailto:sboyd@kernel.org] Quoting Aisheng Dong
> > > (2018-12-12 17:07:55)
> > > > diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
> > > > index 37478ba..5c26f4e 100644
> > > > --- a/drivers/clk/imx/Kconfig
> > > > +++ b/drivers/clk/imx/Kconfig
> > > > @@ -3,3 +3,9 @@
> > > >  config MXC_CLK
> > > >         bool
> > > >         def_bool (ARCH_MXC && !ARM64) || (ARCH_MXC && ARM64
> &&
> > > > SOC_IMX8MQ)
> > > > +
> > > > +config MXC_CLK_SCU
> > > > +       bool "IMX SCU Clock"
> > > > +       depends on ARCH_MXC && ARM64
> > >
> > > This should depend on the IMX_SCU config too, right? Otherwise
> > > compilation will fail.
> > >
> >
> > Yes, you're right. I will add it.
> >
> > > Plus, I can't seem to compile this driver regardless, because the
> > > defines for the CLK messages are in some header file that is just
> > > included in another header file, and that is all going through another tree.
> Why?
> > >
> > > Is there any reason why those defines can't just be written in the
> > > clk-scu.h file introduced in this patch?
> >
> > Sorry about that.
> > Yes, it depends on PM service headfile [1] which defines all the power
> > related service together by SCU protocol, including power domain/clk/reset
> and etc.
> > (we probably should divide them to get a better separation from the start).
> > But Patch 4 depends on the resource ID headfile shared by most SCU client
> users.
> >
> > [1]
> > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpat
> >
> chwork.kernel.org%2Fpatch%2F10664137%2F&amp;data=02%7C01%7Caishe
> ng.don
> >
> g%40nxp.com%7Cea09bbc7dfbf424844bb08d66163c240%7C686ea1d3bc2b4
> c6fa92cd
> >
> 99c5c301635%7C0%7C0%7C636803478422100123&amp;sdata=GwOYjZns%2
> BJxLePnT5
> > 6ZTzRuME3DQA5V8eukvRXCf1s0%3D&amp;reserved=0
> > [2]
> > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpat
> >
> chwork.kernel.org%2Fpatch%2F10664125%2F&amp;data=02%7C01%7Caishe
> ng.don
> >
> g%40nxp.com%7Cea09bbc7dfbf424844bb08d66163c240%7C686ea1d3bc2b4
> c6fa92cd
> >
> 99c5c301635%7C0%7C0%7C636803478422100123&amp;sdata=CJGAlaF4K3
> uK3bYlEbC
> > sSRQssa25%2F%2BiPaI5y4x7grRc%3D&amp;reserved=0
> >
> > How would you suggest for this situation?
> >
> 
> I suggest the defines just go into the clk driver. Is that a workable solution or
> does something not work?

Are you suggesting me to doing it now?
As the patch is already in Shawn's tree, but I think I can do it and clean up
the file in Shawn's tree later.

However, only moving the clk related defines into clk driver is not enough.
The driver compiling still depends on the resource ID file which is shared
by power domain driver and clk driver (and possible many others).
So we still have dependency issues.

Any suggestion?

Regards
Dong Aisheng


  reply	other threads:[~2018-12-14  1:45 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-13  1:07 [PATCH V11 0/7] clk: imx: add imx8qxp clock support Aisheng Dong
2018-12-13  1:07 ` [PATCH V11 1/7] clk: imx: add configuration option for mmio clks Aisheng Dong
2018-12-13  7:57   ` Stephen Boyd
2018-12-13  8:02     ` Olof Johansson
2018-12-13  8:12       ` Shawn Guo
2018-12-13 12:04         ` Abel Vesa
2018-12-14  1:36         ` Olof Johansson
2018-12-13 12:49     ` Aisheng Dong
2018-12-14  1:32       ` Stephen Boyd
2018-12-14  1:50         ` Aisheng Dong
2018-12-13  1:07 ` [PATCH V11 2/7] clk: imx: add scu clock common part Aisheng Dong
2018-12-13  7:48   ` Stephen Boyd
2018-12-13 11:19     ` Aisheng Dong
2018-12-14  1:30       ` Stephen Boyd
2018-12-14  1:44         ` Aisheng Dong [this message]
2018-12-14  2:17           ` Stephen Boyd
2018-12-14  2:28             ` Aisheng Dong
2018-12-13  1:07 ` [PATCH V11 3/7] dt-bindings: clock: imx8qxp: add SCU clock IDs Aisheng Dong
2018-12-13  7:59   ` Stephen Boyd
2018-12-13  8:31     ` Shawn Guo
2018-12-13 11:22     ` Aisheng Dong
2018-12-13  1:08 ` [PATCH V11 4/7] clk: imx: add imx8qxp clk driver Aisheng Dong
2018-12-13  1:08 ` [PATCH V11 5/7] dt-bindings: clock: add imx8qxp lpcg clock binding Aisheng Dong
2018-12-13  7:59   ` Stephen Boyd
2018-12-13  1:08 ` [PATCH V11 6/7] clk: imx: add lpcg clock support Aisheng Dong
2018-12-13  1:08 ` [PATCH V11 7/7] clk: imx: add imx8qxp lpcg driver Aisheng Dong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR04MB4211D584BCE4B6D06D57637280A10@AM0PR04MB4211.eurprd04.prod.outlook.com \
    --to=aisheng.dong@nxp.com \
    --cc=fabio.estevam@nxp.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-imx@nxp.com \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@kernel.org \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).