Skip to contentSkip to conversation

clk: sunxi-ng: always select CCU_GATE

PATCH In review Arnd Bergmann 3 participants 3 messages Apr 27, 2017 – Apr 28, 2017

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

PATCH 1/1 clk: sunxi-ng: always select CCU_GATE

When the base driver is enabled but all SoC specific drivers are turned off, we now get a build error after code was added to always refer to the clk gates:

drivers/clk/built-in.o: In function `ccu_pll_notifier_cb':
:(.text+0x154f8): undefined reference to ccu_gate_helper_disable' :(.text+0x15504): undefined reference to ccu_gate_helper_enable'

This changes the Kconfig to always require the gate code to be built-in when CONFIG_SUNXI_CCU is set.

Fixes 02ae2bc6febd ("clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks")
---
 drivers/clk/sunxi-ng/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/sunxi-ng/Kconfig +1 -1
index 64088e599404..b0d551a8efe4 100644
@@ -16,7 +16,7 @@ config SUNXI_CCU_FRAC
 	bool
 
 config SUNXI_CCU_GATE
-	bool
+	def_bool y
 
 config SUNXI_CCU_MUX
 	bool
Signature · 1 line
2.9.0
Acked-by on v1 1/1
#1 lore raw

1;4601;0c

Quoted 8 lines · Arnd Bergmann

When the base driver is enabled but all SoC specific drivers are turned off, we now get a build error after code was added to always refer to the clk gates:

drivers/clk/built-in.o: In function `ccu_pll_notifier_cb':
:(.text+0x154f8): undefined reference to ccu_gate_helper_disable' :(.text+0x15504): undefined reference to ccu_gate_helper_enable'

Quoted 5 lines

This changes the Kconfig to always require the gate code to be built-in when CONFIG_SUNXI_CCU is set.

Fixes 02ae2bc6febd ("clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks")

Stephen, Mike, can you apply this patch directly? This affects the current (4.11) release, so we probably don't want to have the overhead of a PR here :/

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170428/b43c9300/attachment.sig>
#2 lore raw
Quoted 13 lines · Maxime Ripard

1;4601;0c

Quoted 11 lines · Arnd Bergmann

When the base driver is enabled but all SoC specific drivers are turned off, we now get a build error after code was added to always refer to the clk gates:

drivers/clk/built-in.o: In function `ccu_pll_notifier_cb':
:(.text+0x154f8): undefined reference to ccu_gate_helper_disable' :(.text+0x15504): undefined reference to ccu_gate_helper_enable'

This changes the Kconfig to always require the gate code to be built-in when CONFIG_SUNXI_CCU is set.

Quoted 9 lines
Quoted 2 lines
Fixes 02ae2bc6febd ("clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks")

Stephen, Mike, can you apply this patch directly? This affects the current (4.11) release, so we probably don't want to have the overhead of a PR here :/

Yep. Applied to fixes to be sent off today.

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project