Skip to contentSkip to conversation

ARM: davinci: select CONFIG_RESET_CONTROLLER

PATCH In review Arnd Bergmann 7 participants 9 messages Dec 10, 2019 – Jan 16, 2020

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

PATCH 1/1 ARM: davinci: select CONFIG_RESET_CONTROLLER

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Fixes f962396ce292 ("ARM: davinci: support multiplatform build for ARM v5")
Cc <[email protected]> # v5.4
---
 arch/arm/mach-davinci/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-davinci/Kconfig +1 -0
index dd427bd2768c..02b180ad7245 100644
@@ -9,6 +9,7 @@ menuconfig ARCH_DAVINCI
 	select PM_GENERIC_DOMAINS if PM
 	select PM_GENERIC_DOMAINS_OF if PM && OF
 	select REGMAP_MMIO
+	select RESET_CONTROLLER
 	select HAVE_IDE
 	select PINCTRL_SINGLE
 
Signature · 1 line
2.20.0
Reviewed-by on v1 1/1
#1 lore raw

wt., 10 gru 2019 o 20:52 Arnd Bergmann <[email protected]> napisał(a):

Quoted 9 lines

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Quoted 7 lines
Fixes f962396ce292 ("ARM: davinci: support multiplatform build for ARM v5")
Cc <[email protected]> # v5.4
---
 arch/arm/mach-davinci/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Reviewed-by
#2 lore raw
Quoted 17 lines · Bartosz Golaszewski

wt., 10 gru 2019 o 20:52 Arnd Bergmann <[email protected]> napisał(a):

Quoted 8 lines

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Quoted 7 lines
Fixes f962396ce292 ("ARM: davinci: support multiplatform build for ARM v5")
Cc <[email protected]> # v5.4
---
 arch/arm/mach-davinci/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 1 line

regards
Philipp

Acked-by on v1 1/1
#3 lore raw
In reply to Arnd Bergmann

Hi Arnd,

Quoted 11 lines · Arnd Bergmann

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Fixes f962396ce292 ("ARM: davinci: support multiplatform build for ARM v5")
Cc <[email protected]> # v5.4

Assuming you are going to apply directly to ARM-SoC,

Thanks,
Sekhar

Quoted 19 lines
---
 arch/arm/mach-davinci/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-davinci/Kconfig +1 -0
index dd427bd2768c..02b180ad7245 100644
@@ -9,6 +9,7 @@ menuconfig ARCH_DAVINCI
 	select PM_GENERIC_DOMAINS if PM
 	select PM_GENERIC_DOMAINS_OF if PM && OF
 	select REGMAP_MMIO
+	select RESET_CONTROLLER
 	select HAVE_IDE
 	select PINCTRL_SINGLE
 
Signature · 1 line
2.20.0

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#6 lore raw

TI omap compile problem in 5.5-rc1? was Re: [PATCH] ARM: davinci: select CONFIG_RESET_CONTROLLER

In reply to Arnd Bergmann

Hi!

Quoted 8 lines

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Does omap need similar handing in 5.5-rc1?

LD .tmp_vmlinux1
drivers/soc/ti/omap_prm.o: In function `omap_prm_probe':
omap_prm.c:(.text+0x4d0): undefined reference to `devm_reset_controller_register' /data/fast/l/k/Makefile:1077: recipe for target 'vmlinux' failed make[1]: *** [vmlinux] Error 1

Enabling reset controller seems to help::

Reset Controller Support (RESET_CONTROLLER) [Y/n/?] (NEW)
TI SYSCON Reset Driver (RESET_TI_SYSCON) [N/m/y/?] (NEW)

Best regards,
Pavel

#7 lore raw

Re: TI omap compile problem in 5.5-rc1? was Re: [PATCH] ARM: davinci: select CONFIG_RESET_CONTROLLER

Quoted 20 lines · Pavel Machek

Hi!

Quoted 8 lines

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Does omap need similar handing in 5.5-rc1?

LD .tmp_vmlinux1
drivers/soc/ti/omap_prm.o: In function `omap_prm_probe':
omap_prm.c:(.text+0x4d0): undefined reference to `devm_reset_controller_register' /data/fast/l/k/Makefile:1077: recipe for target 'vmlinux' failed make[1]: *** [vmlinux] Error 1

Quoted 4 lines

Enabling reset controller seems to help::

Reset Controller Support (RESET_CONTROLLER) [Y/n/?] (NEW)
TI SYSCON Reset Driver (RESET_TI_SYSCON) [N/m/y/?] (NEW)

Yes see the patch Arnd recently posted to do that.

Regards,

Tony

#8 lore raw

Re: TI omap compile problem in 5.5-rc1? was Re: [PATCH] ARM: davinci: select CONFIG_RESET_CONTROLLER

Hi!

Quoted 18 lines
Quoted 18 lines
Quoted 8 lines

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Does omap need similar handing in 5.5-rc1?

LD .tmp_vmlinux1
drivers/soc/ti/omap_prm.o: In function `omap_prm_probe':
omap_prm.c:(.text+0x4d0): undefined reference to `devm_reset_controller_register' /data/fast/l/k/Makefile:1077: recipe for target 'vmlinux' failed make[1]: *** [vmlinux] Error 1

Quoted 6 lines
Quoted 4 lines

Enabling reset controller seems to help::

Reset Controller Support (RESET_CONTROLLER) [Y/n/?] (NEW)
TI SYSCON Reset Driver (RESET_TI_SYSCON) [N/m/y/?] (NEW)

Yes see the patch Arnd recently posted to do that.

Thanks for the hint and sorry for the noise.

Best regards,
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#4 lore raw
In reply to Sekhar Nori

Hi Arnd,

Quoted 11 lines · Sekhar Nori

Hi Arnd,

Quoted 8 lines · Arnd Bergmann

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Quoted 7 lines
Quoted 3 lines
Fixes f962396ce292 ("ARM: davinci: support multiplatform build for ARM v5")
Cc <[email protected]> # v5.4

Assuming you are going to apply directly to ARM-SoC,

This is not yet in Linus's master. Let me know if I should collect it and send a pull request.

Thanks,
Sekhar

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#5 lore raw
Quoted 18 lines · Sekhar Nori

Hi Arnd,

Quoted 15 lines · Sekhar Nori

Hi Arnd,

Quoted 11 lines · Arnd Bergmann

Selecting RESET_CONTROLLER is actually required, otherwise we can get a link failure in the clock driver:

drivers/clk/davinci/psc.o: In function `__davinci_psc_register_clocks':
psc.c:(.text+0x9a0): undefined reference to devm_reset_controller_register' drivers/clk/davinci/psc-da850.o: In function da850_psc0_init':
psc-da850.c:(.text+0x24): undefined reference to `reset_controller_add_lookup'

Fixes f962396ce292 ("ARM: davinci: support multiplatform build for ARM v5")
Cc <[email protected]> # v5.4
Quoted 6 lines
Quoted 3 lines

Assuming you are going to apply directly to ARM-SoC,

This is not yet in Linus's master. Let me know if I should collect it and send a pull request.

It's sitting in our fixes branch and should show up in mainline in not too long.

-Olof