Thread (22 messages) 22 messages, 3 authors, 2018-12-17

RE: [PATCH V9 1/7] clk: imx: add configuration option for mmio clks

From: Stephen Boyd <sboyd@kernel.org>
Date: 2018-12-11 19:29:33
Also in: linux-clk

Quoting Aisheng Dong (2018-12-10 18:36:29)
quoted
-----Original Message-----
From: Stephen Boyd [mailto:sboyd@kernel.org]
Sent: Tuesday, December 11, 2018 4:55 AM
[...]
quoted
Subject: Re: [PATCH V9 1/7] clk: imx: add configuration option for mmio clks

Quoting Aisheng DONG (2018-12-04 06:39:22)
quoted
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index c12a05c..303082c 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -570,6 +580,7 @@ config SOC_IMX7ULP  config SOC_VF610
        bool "Vybrid Family VF610 support"
        select ARM_GIC if ARCH_MULTI_V7
+       select MXC_CLK
        select PINCTRL_VF610
Instead of select can we break this dependency on the arch Kconfig and
have:

      config MXC_CLK
              def_bool ARCH_MXC && !ARM64
Thanks for the suggestion.
One little problem is that we also have LS1021 supported under ARCH_MXC which
does not use MXC_CLK.
Ok. So then your change is also limiting the compilation of
drivers/clk/imx/ to only the platforms that select it now, instead of
all ARCH_MXC like it was done before.

We can also have def_bool <big list of SoC platforms> if that helps for
the optimization that this patch is making.

arm-soc has generally pushed against having so many different arch level
Kconfig options because they make for unwieldy Kconfig fragments that
may become conflicting. Instead, the options for the different SoCs are
removed and we just have one for the platform and rely on defconfigs to
pick the right drivers. 

Why can't we do that here?
 
quoted
quoted
diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile index
5c0b11e..f850424 100644
--- a/drivers/clk/imx/Makefile
+++ b/drivers/clk/imx/Makefile
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0

-obj-y += \
+obj-$(CONFIG_MXC_CLK) += \
Because this changes to obj-$(CONFIG) we should change the
drivers/clk/Makefile to have obj-y for this Makefile instead of depending on
ARCH_MXC.
We also use ARCH_MXC for ARMv8 SoC clocks.
Yes, and? I'm suggesting drivers/clk/Makefile have an obj-y +=
drivers/clk/imx/ and then decide to compile or not compile the MXC_CLK
"core" bits based on CONFIG_MXC_CLK config option.


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help