2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/clk/imx
Dong Aisheng 6247e31b75 clk: imx: scu: fix MXC_CLK_SCU module build break
This issue can be reproduced by having a kernel config with
CONFIG_IMX_MBOX=m and CONFIG_MXC_CLK_SCU=m.  It's caused by the Makefile
wanting to build clk-scu.o and clk-imx8qxp.o as different targets but
that doesn't work (e.g. MXC_CLK_SCU = y while CLK_IMX8QXP = n)

"obj-$(CONFIG_MXC_CLK_SCU) += clk-imx-scu.o clk-imx-lpcg-scu.o
clk-imx-scu-$(CONFIG_CLK_IMX8QXP) += clk-scu.o clk-imx8qxp.o"

Having MXC_CLK_SCU=y/m while CLK_IMX8QXP=n will cause a linker problem
like below:

  LD [M]  drivers/clk/imx/clk-imx-scu.o
  arm-poky-linux-gnueabi-ld: no input files

Make MXC_CLK_SCU be un-selectable by users so it can only be selected by
the CLK_IMX8QXP option, ensuring the two symbols are built together.
Drop COMPILE_TEST too because this option isn't selectable anymore. We
can remove it from MXC_CLK_SCU because CLK_IMX8QXP selects MXC_CLK_SCU
which already has COMPILE_TEST.

Fixes: e0d0d4d86c ("clk: imx8qxp: Support building i.MX8QXP clock driver as module")
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20201130084624.21113-1-aisheng.dong@nxp.com
[sboyd@kernel.org: Rework commit text]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2020-12-07 13:54:00 -08:00
..
clk-busy.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-composite-7ulp.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-composite-8m.c clk: imx: fix composite peripheral flags 2020-09-07 11:08:50 +08:00
clk-cpu.c clk: imx: Support building i.MX common clock driver as module 2020-08-22 12:38:20 +08:00
clk-divider-gate.c clk: imx: Rename the imx_clk_divider_gate to imply it's clk_hw based 2019-12-11 19:19:59 +08:00
clk-fixup-div.c clk: imx: drop redundant initialization 2020-02-17 14:32:32 +08:00
clk-fixup-mux.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-frac-pll.c clk: imx: Support building i.MX common clock driver as module 2020-08-22 12:38:20 +08:00
clk-gate2.c clk: imx: gate2: Fix a few typos 2020-09-13 09:21:29 +08:00
clk-gate-exclusive.c This round of clk driver and framework updates is heavy on the driver update 2019-07-17 10:07:48 -07:00
clk-imx1.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
clk-imx5.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-imx6q.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-imx6sl.c clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits 2020-08-22 12:37:18 +08:00
clk-imx6sll.c clk: imx: imx6sll: use imx_obtain_fixed_clk_hw to simplify code 2019-10-28 16:46:45 +08:00
clk-imx6sx.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-imx6ul.c clk: imx: imx6ul: change flexcan clock to support CiA bitrates 2020-04-13 22:22:33 +08:00
clk-imx7d.c clk: imx: fix i.MX7D peripheral clk mux flags 2020-09-07 11:08:50 +08:00
clk-imx7ulp.c clk: imx7ulp: make it easy to change ARM core clk 2020-04-14 21:35:58 +08:00
clk-imx8mm.c clk: imx8m: fix bus critical clk registration 2020-11-04 17:13:12 -08:00
clk-imx8mn.c clk: imx8m: fix bus critical clk registration 2020-11-04 17:13:12 -08:00
clk-imx8mp.c clk: imx8m: fix bus critical clk registration 2020-11-04 17:13:12 -08:00
clk-imx8mq.c clk: imx8m: fix bus critical clk registration 2020-11-04 17:13:12 -08:00
clk-imx8qxp-lpcg.c clk: imx8qxp: Support building i.MX8QXP clock driver as module 2020-08-22 12:38:29 +08:00
clk-imx8qxp-lpcg.h clk: imx: add imx8qxp lpcg driver 2018-12-14 13:01:14 -08:00
clk-imx8qxp.c clk: imx8qxp: Support building i.MX8QXP clock driver as module 2020-08-22 12:38:29 +08:00
clk-imx25.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1 2019-05-21 11:28:39 +02:00
clk-imx27.c clk: imx: imx27: Remove mx27_clocks_init() 2020-09-22 14:08:16 +08:00
clk-imx31.c clk: imx: imx31: Remove mx31_clocks_init() 2020-09-22 14:08:19 +08:00
clk-imx35.c clk: imx: imx35: Remove mx35_clocks_init() 2020-09-22 14:08:22 +08:00
clk-lpcg-scu.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-pfd.c clk: imx: Fix and update kerneldoc 2020-09-07 11:08:50 +08:00
clk-pfdv2.c clk: imx: Fix and update kerneldoc 2020-09-07 11:08:50 +08:00
clk-pll14xx.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-pllv1.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-pllv2.c clk: imx: pllv2: Switch to clk_hw based API 2019-12-11 19:19:44 +08:00
clk-pllv3.c clk: imx: Fix and update kerneldoc 2020-09-07 11:08:50 +08:00
clk-pllv4.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-scu.c clk: imx: Align imx sc clock parent msg structs to 4 2020-03-25 18:46:05 -07:00
clk-scu.h clk: imx: scu: add set parent support 2019-02-21 12:41:16 -08:00
clk-sscg-pll.c clk: imx: Support building i.MX common clock driver as module 2020-08-22 12:38:20 +08:00
clk-vf610.c clk: imx: vf610: Add CRC clock 2020-08-23 10:08:35 +08:00
clk.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk.h clk: imx8m: fix bus critical clk registration 2020-11-04 17:13:12 -08:00
Kconfig clk: imx: scu: fix MXC_CLK_SCU module build break 2020-12-07 13:54:00 -08:00
Makefile clk: imx: imx21: Remove clock driver 2020-09-22 14:09:19 +08:00