Skip to contentSkip to conversation

mips: bmips: init clocks earlier

PATCH Applied Álvaro Fernández Rojas 2 participants 2 messages Feb 22, 2021 – Feb 23, 2021

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

PATCH 1/1 mips: bmips: init clocks earlier

device_initcall() is too late for bcm63xx.
We need to call of_clk_init() earlier in order to properly boot.

---
 arch/mips/bmips/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/bmips/setup.c +1 -1
index 95f8f10d8697..31bcfa4e08b9 100644
@@ -196,4 +196,4 @@ static int __init plat_dev_init(void)
 	return 0;
 }
 
-device_initcall(plat_dev_init);
+arch_initcall(plat_dev_init);
Signature · 1 line
2.20.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Álvaro Fernández Rojas

device_initcall() is too late for bcm63xx.
We need to call of_clk_init() earlier in order to properly boot.

---
 arch/mips/bmips/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]