* [PATCH] clk: hisilicon: allow COMPILE_TEST builds
@ 2026-05-09 5:11 Rosen Penev
2026-05-11 14:59 ` Brian Masney
0 siblings, 1 reply; 4+ messages in thread
From: Rosen Penev @ 2026-05-09 5:11 UTC (permalink / raw)
To: linux-clk
Cc: Michael Turquette, Stephen Boyd, Brian Masney, Nathan Chancellor,
Nick Desaulniers, Bill Wendling, Justin Stitt, open list,
open list:CLANG/LLVM BUILD SUPPORT:Keyword:b(?i:clang|llvm)b
The HiSilicon clock symbols already depend on ARCH_HISI or COMPILE_TEST,
but the parent clock Makefile only descends into the hisilicon directory
when ARCH_HISI is enabled.
Add a hidden family gate selected by the HiSilicon clock and reset symbols,
default it for ARCH_HISI, and use it for the parent Makefile descent. This
keeps existing platform builds unchanged while allowing compile-test
coverage.
Tested with:
make LLVM=1 ARCH=loongarch drivers/clk/hisilicon/
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/clk/Makefile | 2 +-
drivers/clk/hisilicon/Kconfig | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index 4b81757f9090..b20a0445828b 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -120,7 +120,7 @@ obj-y += bcm/
obj-$(CONFIG_ARCH_BERLIN) += berlin/
obj-$(CONFIG_COMMON_CLK_DAVINCI) += davinci/
obj-$(CONFIG_COMMON_CLK_ESWIN) += eswin/
-obj-$(CONFIG_ARCH_HISI) += hisilicon/
+obj-$(CONFIG_COMMON_CLK_HISI) += hisilicon/
obj-y += imgtec/
obj-y += imx/
obj-y += ingenic/
diff --git a/drivers/clk/hisilicon/Kconfig b/drivers/clk/hisilicon/Kconfig
index c1ec75aa4ccd..e70bcfa9105b 100644
--- a/drivers/clk/hisilicon/Kconfig
+++ b/drivers/clk/hisilicon/Kconfig
@@ -1,8 +1,13 @@
# SPDX-License-Identifier: GPL-2.0-only
+config COMMON_CLK_HISI
+ bool
+ default ARCH_HISI
+
config COMMON_CLK_HI3516CV300
tristate "HI3516CV300 Clock Driver"
depends on ARCH_HISI || COMPILE_TEST
select RESET_HISI
+ select COMMON_CLK_HISI
default ARCH_HISI
help
Build the clock driver for hi3516cv300.
@@ -11,6 +16,7 @@ config COMMON_CLK_HI3519
tristate "Hi3519 Clock Driver"
depends on ARCH_HISI || COMPILE_TEST
select RESET_HISI
+ select COMMON_CLK_HISI
default ARCH_HISI
help
Build the clock driver for hi3519.
@@ -19,6 +25,7 @@ config COMMON_CLK_HI3559A
bool "Hi3559A Clock Driver"
depends on ARCH_HISI || COMPILE_TEST
select RESET_HISI
+ select COMMON_CLK_HISI
default ARCH_HISI
help
Build the clock driver for hi3559a.
@@ -26,6 +33,7 @@ config COMMON_CLK_HI3559A
config COMMON_CLK_HI3660
bool "Hi3660 Clock Driver"
depends on ARCH_HISI || COMPILE_TEST
+ select COMMON_CLK_HISI
default ARCH_HISI
help
Build the clock driver for hi3660.
@@ -33,6 +41,7 @@ config COMMON_CLK_HI3660
config COMMON_CLK_HI3670
bool "Hi3670 Clock Driver"
depends on ARCH_HISI || COMPILE_TEST
+ select COMMON_CLK_HISI
default ARCH_HISI
help
Build the clock driver for hi3670.
@@ -41,6 +50,7 @@ config COMMON_CLK_HI3798CV200
tristate "Hi3798CV200 Clock Driver"
depends on ARCH_HISI || COMPILE_TEST
select RESET_HISI
+ select COMMON_CLK_HISI
default ARCH_HISI
help
Build the clock driver for hi3798cv200.
@@ -48,6 +58,7 @@ config COMMON_CLK_HI3798CV200
config COMMON_CLK_HI6220
bool "Hi6220 Clock Driver"
depends on ARCH_HISI || COMPILE_TEST
+ select COMMON_CLK_HISI
default ARCH_HISI
help
Build the Hisilicon Hi6220 clock driver based on the common clock framework.
@@ -55,6 +66,7 @@ config COMMON_CLK_HI6220
config RESET_HISI
bool "HiSilicon Reset Controller Driver"
depends on ARCH_HISI || COMPILE_TEST
+ select COMMON_CLK_HISI
select RESET_CONTROLLER
help
Build reset controller driver for HiSilicon device chipsets.
@@ -63,6 +75,7 @@ config STUB_CLK_HI6220
bool "Hi6220 Stub Clock Driver" if EXPERT
depends on (COMMON_CLK_HI6220 || COMPILE_TEST)
depends on MAILBOX
+ select COMMON_CLK_HISI
default COMMON_CLK_HI6220
help
Build the Hisilicon Hi6220 stub clock driver.
@@ -71,6 +84,7 @@ config STUB_CLK_HI3660
bool "Hi3660 Stub Clock Driver" if EXPERT
depends on (COMMON_CLK_HI3660 || COMPILE_TEST)
depends on MAILBOX
+ select COMMON_CLK_HISI
default COMMON_CLK_HI3660
help
Build the Hisilicon Hi3660 stub clock driver.
--
2.54.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: hisilicon: allow COMPILE_TEST builds
2026-05-09 5:11 [PATCH] clk: hisilicon: allow COMPILE_TEST builds Rosen Penev
@ 2026-05-11 14:59 ` Brian Masney
2026-07-19 21:44 ` Rosen Penev
0 siblings, 1 reply; 4+ messages in thread
From: Brian Masney @ 2026-05-11 14:59 UTC (permalink / raw)
To: Rosen Penev
Cc: linux-clk, Michael Turquette, Stephen Boyd, Nathan Chancellor,
Nick Desaulniers, Bill Wendling, Justin Stitt, open list,
open list:CLANG/LLVM BUILD SUPPORT:Keyword:b(?i:clang|llvm)b
On Fri, May 08, 2026 at 10:11:10PM -0700, Rosen Penev wrote:
> The HiSilicon clock symbols already depend on ARCH_HISI or COMPILE_TEST,
> but the parent clock Makefile only descends into the hisilicon directory
> when ARCH_HISI is enabled.
>
> Add a hidden family gate selected by the HiSilicon clock and reset symbols,
> default it for ARCH_HISI, and use it for the parent Makefile descent. This
> keeps existing platform builds unchanged while allowing compile-test
> coverage.
>
> Tested with:
> make LLVM=1 ARCH=loongarch drivers/clk/hisilicon/
>
> Assisted-by: Codex:GPT-5.5
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: hisilicon: allow COMPILE_TEST builds
2026-05-11 14:59 ` Brian Masney
@ 2026-07-19 21:44 ` Rosen Penev
2026-07-20 14:53 ` Brian Masney
0 siblings, 1 reply; 4+ messages in thread
From: Rosen Penev @ 2026-07-19 21:44 UTC (permalink / raw)
To: Brian Masney
Cc: linux-clk, Michael Turquette, Stephen Boyd, Nathan Chancellor,
Nick Desaulniers, Bill Wendling, Justin Stitt, open list,
open list:CLANG/LLVM BUILD SUPPORT:Keyword:b(?i:clang|llvm)b
On Mon, May 11, 2026 at 8:00 AM Brian Masney <bmasney@redhat.com> wrote:
>
> On Fri, May 08, 2026 at 10:11:10PM -0700, Rosen Penev wrote:
> > The HiSilicon clock symbols already depend on ARCH_HISI or COMPILE_TEST,
> > but the parent clock Makefile only descends into the hisilicon directory
> > when ARCH_HISI is enabled.
> >
> > Add a hidden family gate selected by the HiSilicon clock and reset symbols,
> > default it for ARCH_HISI, and use it for the parent Makefile descent. This
> > keeps existing platform builds unchanged while allowing compile-test
> > coverage.
> >
> > Tested with:
> > make LLVM=1 ARCH=loongarch drivers/clk/hisilicon/
> >
> > Assisted-by: Codex:GPT-5.5
> > Signed-off-by: Rosen Penev <rosenp@gmail.com>
>
> Reviewed-by: Brian Masney <bmasney@redhat.com>
Should I resend?
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: hisilicon: allow COMPILE_TEST builds
2026-07-19 21:44 ` Rosen Penev
@ 2026-07-20 14:53 ` Brian Masney
0 siblings, 0 replies; 4+ messages in thread
From: Brian Masney @ 2026-07-20 14:53 UTC (permalink / raw)
To: Rosen Penev
Cc: linux-clk, Michael Turquette, Stephen Boyd, Nathan Chancellor,
Nick Desaulniers, Bill Wendling, Justin Stitt, open list,
open list:CLANG/LLVM BUILD SUPPORT:Keyword:b(?i:clang|llvm)b
Hi Rosen,
On Sun, Jul 19, 2026 at 02:44:03PM -0700, Rosen Penev wrote:
> On Mon, May 11, 2026 at 8:00 AM Brian Masney <bmasney@redhat.com> wrote:
> >
> > On Fri, May 08, 2026 at 10:11:10PM -0700, Rosen Penev wrote:
> > > The HiSilicon clock symbols already depend on ARCH_HISI or COMPILE_TEST,
> > > but the parent clock Makefile only descends into the hisilicon directory
> > > when ARCH_HISI is enabled.
> > >
> > > Add a hidden family gate selected by the HiSilicon clock and reset symbols,
> > > default it for ARCH_HISI, and use it for the parent Makefile descent. This
> > > keeps existing platform builds unchanged while allowing compile-test
> > > coverage.
> > >
> > > Tested with:
> > > make LLVM=1 ARCH=loongarch drivers/clk/hisilicon/
> > >
> > > Assisted-by: Codex:GPT-5.5
> > > Signed-off-by: Rosen Penev <rosenp@gmail.com>
> >
> > Reviewed-by: Brian Masney <bmasney@redhat.com>
> Should I resend?
Yes, it missed the last merge window, and I submitted it to Stephen on
June 29th via this git pull:
https://lore.kernel.org/linux-clk/akLzCVzbMbUsgDda@redhat.com/T/#u
Let's see what he says. Hopefully you won't have to resend.
Brian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-20 14:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-09 5:11 [PATCH] clk: hisilicon: allow COMPILE_TEST builds Rosen Penev
2026-05-11 14:59 ` Brian Masney
2026-07-19 21:44 ` Rosen Penev
2026-07-20 14:53 ` Brian Masney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox