clk: aspeed: ast2700: select AUXILIARY_BUS
Subsystems (3)
PATCH 1/1 clk: aspeed: ast2700: select AUXILIARY_BUS
The AST2700 clock driver also exposes the SoC reset controller: it hands its register base to a reset auxiliary device via devm_auxiliary_device_create(), which the separate ASPEED reset driver (RESET_ASPEED) then binds to. That create call needs the auxiliary bus core (AUXILIARY_BUS), not the reset driver itself, but COMMON_CLK_AST2700 does not select AUXILIARY_BUS.
It builds today only because RESET_ASPEED selects AUXILIARY_BUS and is normally enabled alongside the clock driver. On a randconfig with COMMON_CLK_AST2700=y and RESET_ASPEED=n, nothing pulls the auxiliary bus in and the kernel fails to link:
ld: drivers/clk/aspeed/clk-ast2700.o: in function `ast2700_soc_clk_probe':
clk-ast2700.c:(.text+0x147c): undefined reference to `__devm_auxiliary_device_create'
Select AUXILIARY_BUS directly, as other clock drivers that create auxiliary devices do, so it builds regardless of the reset driver.
--- drivers/clk/aspeed/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/clk/aspeed/Kconfig +1 -0
@@ -15,6 +15,7 @@ config COMMON_CLK_ASPEED config COMMON_CLK_AST2700 bool "Clock driver for AST2700 SoC" depends on ARCH_ASPEED || COMPILE_TEST + select AUXILIARY_BUS help This driver provides support for clock on AST2700 SoC. The driver is responsible for managing the various clocks required
Signature · 1 line
2.39.5 (Apple Git-154)
Quoted 12 lines · Karl Mehltretter
The AST2700 clock driver also exposes the SoC reset controller: it hands its register base to a reset auxiliary device via
devm_auxiliary_device_create(), which the separate ASPEED reset driver (RESET_ASPEED) then binds to. That create call needs the auxiliary bus core (AUXILIARY_BUS), not the reset driver itself, butCOMMON_CLK_AST2700does not selectAUXILIARY_BUS.It builds today only because
RESET_ASPEEDselectsAUXILIARY_BUSand is normally enabled alongside the clock driver. On a randconfig with COMMON_CLK_AST2700=y and RESET_ASPEED=n, nothing pulls the auxiliary bus in and the kernel fails to link:
Quoted 8 lines
ld:
drivers/clk/aspeed/clk-ast2700.o: in function `ast2700_soc_clk_probe':
clk-ast2700.c:(.text+0x147c): undefined reference to `__devm_auxiliary_device_create'Select
AUXILIARY_BUSdirectly, as other clock drivers that create auxiliary devices do, so it builds regardless of the reset driver.Fixes fdc1eb624ddc ("clk: aspeed: add AST2700 clock driver")Signed-off-by Karl Mehltretter <[email protected]>
Quoted 12 lines · Karl Mehltretter
The AST2700 clock driver also exposes the SoC reset controller: it hands its register base to a reset auxiliary device via
devm_auxiliary_device_create(), which the separate ASPEED reset driver (RESET_ASPEED) then binds to. That create call needs the auxiliary bus core (AUXILIARY_BUS), not the reset driver itself, butCOMMON_CLK_AST2700does not selectAUXILIARY_BUS.It builds today only because
RESET_ASPEEDselectsAUXILIARY_BUSand is normally enabled alongside the clock driver. On a randconfig with COMMON_CLK_AST2700=y and RESET_ASPEED=n, nothing pulls the auxiliary bus in and the kernel fails to link:
Quoted 8 lines
ld:
drivers/clk/aspeed/clk-ast2700.o: in function `ast2700_soc_clk_probe':
clk-ast2700.c:(.text+0x147c): undefined reference to `__devm_auxiliary_device_create'Select
AUXILIARY_BUSdirectly, as other clock drivers that create auxiliary devices do, so it builds regardless of the reset driver.Fixes fdc1eb624ddc ("clk: aspeed: add AST2700 clock driver")Signed-off-by Karl Mehltretter <[email protected]>
Quoted 8 lines · Karl Mehltretter
clk-ast2700.c:(.text+0x147c): undefined reference to `__devm_auxiliary_device_create'
Select
AUXILIARY_BUSdirectly, as other clock drivers that create auxiliary devices do, so it builds regardless of the reset driver.Fixes fdc1eb624ddc ("clk: aspeed: add AST2700 clock driver")Signed-off-by Karl Mehltretter <[email protected]>---
Friendly ping on this patch. It has Reviewed-by tags from Brian Masney and Andrew Jeffery.
I don’t see it in the clk tree or linux-next.
Is anything else needed before it can be picked up?
Thanks,
Karl
Quoted 2 lines · On Sun, 12 Jul 2026 18:03:01 +0200, I wrote:
Select
AUXILIARY_BUSdirectly, as other clock drivers that create auxiliary devices do, so it builds regardless of the reset driver.
Friendly ping on this patch. It already has two Reviewed-by tags.
Adding the new clk co-maintainer addresses to Cc. Is anything else needed from my side before this can be picked up?
Thanks,
Karl
Brian Masney
AppliedQuoted 1 line · Karl Mehltretter
clk: aspeed: ast2700: select
AUXILIARY_BUS
Applied, thanks!
[1/1] clk: aspeed: ast2700: select AUXILIARY_BUS
commit: 8932b4283488ea91b1a67fae7a29a505f1d6e965
Best regards,
Signature · 1 line
Brian Masney <[email protected]>