Skip to contentSkip to conversation

clk: mvebu: ARMADA_AP_CPU_CLK needs to select ARMADA_AP_CP_HELPER

PATCH In review Nathan Chancellor 2 participants 2 messages Jul 1, 2020 – Jul 2, 2020

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

PATCH 1/1 clk: mvebu: ARMADA_AP_CPU_CLK needs to select ARMADA_AP_CP_HELPER

When building arm32 allmodconfig:

ld.lld: error: undefined symbol: ap_cp_unique_name

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

referenced by ap-cpu-clk.c
clk/mvebu/ap-cpu-clk.o:(ap_cpu_clock_probe) in archive drivers/built-in.a

ap_cp_unique_name is only compiled into the kernel image when CONFIG_ARMADA_AP_CP_HELPER is selected (as it is not user selectable). However, CONFIG_ARMADA_AP_CPU_CLK does not select it.

This has been a problem since the driver was added to the kernel but it was not built before commit c318ea261749 ("cpufreq: ap806: fix cpufreq driver needs ap cpu clk") so it was never noticed.

Fixes f756e362d938 ("clk: mvebu: add CPU clock driver for Armada 7K/8K")

---

I do not know who should actually take this patch since the problematic patch is on Viresh's cpufreq/arm/linux-next but the problem originated from a patch in the clk tree in 5.4. I assume all that would be needed is a clk maintainer's ack? Please let me know if I did something wrong.

Cheers,
Nathan

 drivers/clk/mvebu/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/mvebu/Kconfig +1 -0
index ded07b0bd0d5..557d6213783c 100644
@@ -42,6 +42,7 @@ config ARMADA_AP806_SYSCON
 
 config ARMADA_AP_CPU_CLK
 	bool
+	select ARMADA_AP_CP_HELPER
 
 config ARMADA_CP110_SYSCON
 	bool

base-commit: 0363635faa1da1560d2a84e2229c3f3ab108304f

Signature · 1 line
2.27.0
#1 lore raw
Quoted 14 lines · Nathan Chancellor

When building arm32 allmodconfig:

ld.lld: error: undefined symbol: ap_cp_unique_name

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

referenced by ap-cpu-clk.c
clk/mvebu/ap-cpu-clk.o:(ap_cpu_clock_probe) in archive drivers/built-in.a

ap_cp_unique_name is only compiled into the kernel image when CONFIG_ARMADA_AP_CP_HELPER is selected (as it is not user selectable). However, CONFIG_ARMADA_AP_CPU_CLK does not select it.

This has been a problem since the driver was added to the kernel but it was not built before commit c318ea261749 ("cpufreq: ap806: fix cpufreq driver needs ap cpu clk") so it was never noticed.

Quoted 6 lines
Fixes f756e362d938 ("clk: mvebu: add CPU clock driver for Armada 7K/8K")

---

I do not know who should actually take this patch since the problematic patch is on Viresh's cpufreq/arm/linux-next

That patch just enabled the config option and I have picked it up for 5.9.

Quoted 3 lines

but the problem originated
from a patch in the clk tree in 5.4. I assume all that would be needed is a clk maintainer's ack? Please let me know if I did something wrong.

This patch should go through clk tree and get pushed for 5.8 if possible (which makes sense as well).

Signature · 1 line
viresh