linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant
@ 2018-12-13 16:17 Abel Vesa
  2018-12-13 16:22 ` Daniel Baluta
  0 siblings, 1 reply; 7+ messages in thread
From: Abel Vesa @ 2018-12-13 16:17 UTC (permalink / raw)
  To: Shawn Guo, Stephen Boyd, Aisheng Dong
  Cc: linux-clk, Pengutronix Kernel Team, Olof Johansson,
	linux-arm-kernel, Linux Kernel Mailing List, dl-linux-imx,
	Lucas Stach, Fabio Estevam, Abel Vesa

Remove the dependency between the i.MX8MQ CCM clock driver
and the CONFIG_SOC_IMX8MQ and use CONFIG_CLK_IMX8MQ instead.
CONFIG_CLK_IMX8MQ depends on ARCH_MXC && ARM64.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
---
 drivers/clk/Kconfig      | 1 +
 drivers/clk/imx/Kconfig  | 5 +++++
 drivers/clk/imx/Makefile | 3 ++-
 3 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 drivers/clk/imx/Kconfig

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 2dc12bf..833353c 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -293,6 +293,7 @@ config COMMON_CLK_BD718XX
 source "drivers/clk/actions/Kconfig"
 source "drivers/clk/bcm/Kconfig"
 source "drivers/clk/hisilicon/Kconfig"
+source "drivers/clk/imx/Kconfig"
 source "drivers/clk/imgtec/Kconfig"
 source "drivers/clk/ingenic/Kconfig"
 source "drivers/clk/keystone/Kconfig"
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
new file mode 100644
index 0000000..98ede6a
--- /dev/null
+++ b/drivers/clk/imx/Kconfig
@@ -0,0 +1,5 @@
+config CLK_IMX8MQ
+	bool "IMX8MQ CCM Clock Driver"
+	depends on ARCH_MXC && ARM64
+	help
+	    Build the driver for i.MX8MQ CCM Clock Driver
diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile
index 5c0b11e..01e5f55 100644
--- a/drivers/clk/imx/Makefile
+++ b/drivers/clk/imx/Makefile
@@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o
 obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o
 obj-$(CONFIG_SOC_IMX7D)  += clk-imx7d.o
 obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o
-obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o
 obj-$(CONFIG_SOC_VF610)  += clk-vf610.o
+
+obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
-- 
2.7.4


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

* Re: [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant
  2018-12-13 16:17 [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant Abel Vesa
@ 2018-12-13 16:22 ` Daniel Baluta
  2018-12-13 16:51   ` Aisheng Dong
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Baluta @ 2018-12-13 16:22 UTC (permalink / raw)
  To: abel.vesa
  Cc: shawnguo, sboyd, aisheng.dong, Linux Kernel Mailing List,
	Fabio Estevam, dl-linux-imx, kernel, olof, linux-clk,
	linux-arm-kernel, l.stach

<snip>

> --- a/drivers/clk/imx/Makefile
> +++ b/drivers/clk/imx/Makefile
> @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o
>  obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o
>  obj-$(CONFIG_SOC_IMX7D)  += clk-imx7d.o
>  obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o
> -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o
>  obj-$(CONFIG_SOC_VF610)  += clk-vf610.o
> +
> +obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o

Nit: Do we want to keep CONFIG_ sorted?

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

* RE: [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant
  2018-12-13 16:22 ` Daniel Baluta
@ 2018-12-13 16:51   ` Aisheng Dong
  2018-12-13 22:04     ` Stephen Boyd
  2018-12-14  1:01     ` Shawn Guo
  0 siblings, 2 replies; 7+ messages in thread
From: Aisheng Dong @ 2018-12-13 16:51 UTC (permalink / raw)
  To: Daniel Baluta, Abel Vesa
  Cc: shawnguo, sboyd, Linux Kernel Mailing List, Fabio Estevam,
	dl-linux-imx, kernel, olof, linux-clk, linux-arm-kernel, l.stach

[...]

> > --- a/drivers/clk/imx/Makefile
> > +++ b/drivers/clk/imx/Makefile
> > @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o
> >  obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o
> >  obj-$(CONFIG_SOC_IMX7D)  += clk-imx7d.o
> >  obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o
> > -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o
> >  obj-$(CONFIG_SOC_VF610)  += clk-vf610.o
> > +
> > +obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
> 
> Nit: Do we want to keep CONFIG_ sorted?

IMHO It might be okay to make MX8 (ARM64) a new group to start
To get a clear separation. (Slightly not sorted due to VF610)
Anyway, it leaves to Stephen to make the judge.

Regards
Dong Aisheng

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

* RE: [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant
  2018-12-13 16:51   ` Aisheng Dong
@ 2018-12-13 22:04     ` Stephen Boyd
  2018-12-14  1:01     ` Shawn Guo
  1 sibling, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2018-12-13 22:04 UTC (permalink / raw)
  To: Abel Vesa, Aisheng Dong, Daniel Baluta
  Cc: shawnguo, Linux Kernel Mailing List, Fabio Estevam, dl-linux-imx,
	kernel, olof, linux-clk, linux-arm-kernel, l.stach

Quoting Aisheng Dong (2018-12-13 08:51:18)
> [...]
> 
> > > --- a/drivers/clk/imx/Makefile
> > > +++ b/drivers/clk/imx/Makefile
> > > @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o
> > >  obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o
> > >  obj-$(CONFIG_SOC_IMX7D)  += clk-imx7d.o
> > >  obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o
> > > -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o
> > >  obj-$(CONFIG_SOC_VF610)  += clk-vf610.o
> > > +
> > > +obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
> > 
> > Nit: Do we want to keep CONFIG_ sorted?
> 
> IMHO It might be okay to make MX8 (ARM64) a new group to start
> To get a clear separation. (Slightly not sorted due to VF610)
> Anyway, it leaves to Stephen to make the judge.
> 

This is fine to split the two if they're not related. Just have a
comment indicating this.


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

* Re: [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant
  2018-12-13 16:51   ` Aisheng Dong
  2018-12-13 22:04     ` Stephen Boyd
@ 2018-12-14  1:01     ` Shawn Guo
  2018-12-14  1:40       ` Stephen Boyd
  2018-12-14 14:11       ` Daniel Baluta
  1 sibling, 2 replies; 7+ messages in thread
From: Shawn Guo @ 2018-12-14  1:01 UTC (permalink / raw)
  To: Aisheng Dong
  Cc: Daniel Baluta, Abel Vesa, sboyd, Linux Kernel Mailing List,
	Fabio Estevam, dl-linux-imx, kernel, olof, linux-clk,
	linux-arm-kernel, l.stach

On Thu, Dec 13, 2018 at 04:51:18PM +0000, Aisheng Dong wrote:
> [...]
> 
> > > --- a/drivers/clk/imx/Makefile
> > > +++ b/drivers/clk/imx/Makefile
> > > @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o
> > >  obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o
> > >  obj-$(CONFIG_SOC_IMX7D)  += clk-imx7d.o
> > >  obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o
> > > -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o
> > >  obj-$(CONFIG_SOC_VF610)  += clk-vf610.o
> > > +
> > > +obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
> > 
> > Nit: Do we want to keep CONFIG_ sorted?
> 
> IMHO It might be okay to make MX8 (ARM64) a new group to start
> To get a clear separation. (Slightly not sorted due to VF610)
> Anyway, it leaves to Stephen to make the judge.

I think Daniel is suggesting that we put CONFIG_CLK_IMX8MQ prior to
CONFIG_SOC_IMX1, so that all CONFIG_CLK_xxx options go before
CONFIG_SOC_xxx and the list is still naturally alphabetically sorted.

Shawn

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

* Re: [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant
  2018-12-14  1:01     ` Shawn Guo
@ 2018-12-14  1:40       ` Stephen Boyd
  2018-12-14 14:11       ` Daniel Baluta
  1 sibling, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2018-12-14  1:40 UTC (permalink / raw)
  To: Aisheng Dong, Shawn Guo
  Cc: Daniel Baluta, Abel Vesa, Linux Kernel Mailing List,
	Fabio Estevam, dl-linux-imx, kernel, olof, linux-clk,
	linux-arm-kernel, l.stach

Quoting Shawn Guo (2018-12-13 17:01:02)
> On Thu, Dec 13, 2018 at 04:51:18PM +0000, Aisheng Dong wrote:
> > [...]
> > 
> > > > --- a/drivers/clk/imx/Makefile
> > > > +++ b/drivers/clk/imx/Makefile
> > > > @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o
> > > >  obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o
> > > >  obj-$(CONFIG_SOC_IMX7D)  += clk-imx7d.o
> > > >  obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o
> > > > -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o
> > > >  obj-$(CONFIG_SOC_VF610)  += clk-vf610.o
> > > > +
> > > > +obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
> > > 
> > > Nit: Do we want to keep CONFIG_ sorted?
> > 
> > IMHO It might be okay to make MX8 (ARM64) a new group to start
> > To get a clear separation. (Slightly not sorted due to VF610)
> > Anyway, it leaves to Stephen to make the judge.
> 
> I think Daniel is suggesting that we put CONFIG_CLK_IMX8MQ prior to
> CONFIG_SOC_IMX1, so that all CONFIG_CLK_xxx options go before
> CONFIG_SOC_xxx and the list is still naturally alphabetically sorted.
> 

Fine by me. Please resend this patch with the final decision.


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

* Re: [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant
  2018-12-14  1:01     ` Shawn Guo
  2018-12-14  1:40       ` Stephen Boyd
@ 2018-12-14 14:11       ` Daniel Baluta
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel Baluta @ 2018-12-14 14:11 UTC (permalink / raw)
  To: Shawn Guo
  Cc: Aisheng Dong, Abel Vesa, sboyd, Linux Kernel Mailing List,
	Fabio Estevam, dl-linux-imx, kernel, olof, linux-clk,
	linux-arm-kernel, l.stach

On Fri, Dec 14, 2018 at 3:02 AM Shawn Guo <shawnguo@kernel.org> wrote:
>
> On Thu, Dec 13, 2018 at 04:51:18PM +0000, Aisheng Dong wrote:
> > [...]
> >
> > > > --- a/drivers/clk/imx/Makefile
> > > > +++ b/drivers/clk/imx/Makefile
> > > > @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o
> > > >  obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o
> > > >  obj-$(CONFIG_SOC_IMX7D)  += clk-imx7d.o
> > > >  obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o
> > > > -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o
> > > >  obj-$(CONFIG_SOC_VF610)  += clk-vf610.o
> > > > +
> > > > +obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
> > >
> > > Nit: Do we want to keep CONFIG_ sorted?
> >
> > IMHO It might be okay to make MX8 (ARM64) a new group to start
> > To get a clear separation. (Slightly not sorted due to VF610)
> > Anyway, it leaves to Stephen to make the judge.
>
> I think Daniel is suggesting that we put CONFIG_CLK_IMX8MQ prior to
> CONFIG_SOC_IMX1, so that all CONFIG_CLK_xxx options go before
> CONFIG_SOC_xxx and the list is still naturally alphabetically sorted.

Yes, that's correct.

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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-13 16:17 [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant Abel Vesa
2018-12-13 16:22 ` Daniel Baluta
2018-12-13 16:51   ` Aisheng Dong
2018-12-13 22:04     ` Stephen Boyd
2018-12-14  1:01     ` Shawn Guo
2018-12-14  1:40       ` Stephen Boyd
2018-12-14 14:11       ` Daniel Baluta

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).