Skip to contentSkip to conversation

clk: aspeed: ast2700: select AUXILIARY_BUS

PATCH Applied Karl Mehltretter 3 participants 6 messages Jul 12 – Sep 17

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Fixes fdc1eb624ddc ("clk: aspeed: add AST2700 clock driver")
---
 drivers/clk/aspeed/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/aspeed/Kconfig +1 -0
index ef50481c31ff..2f505eb3ca95 100644
@@ -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)
Reviewed-by on v1 1/1
#1 lore raw
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, 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:

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_BUS directly, 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")
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Karl Mehltretter
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, 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:

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_BUS directly, 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")
#3 lore raw
In reply to Karl Mehltretter
Quoted 8 lines · Karl Mehltretter

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.

Fixes fdc1eb624ddc ("clk: aspeed: add AST2700 clock driver")

---

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

#4 lore raw
In reply to Karl Mehltretter
Quoted 2 lines · On Sun, 12 Jul 2026 18:03:01 +0200, I wrote:

Select AUXILIARY_BUS directly, 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

Applied
#5 lore raw
In reply to Karl Mehltretter
Quoted 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]>