2021-02-22 22:35:41

by Álvaro Fernández Rojas

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
---
arch/mips/bmips/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/bmips/setup.c b/arch/mips/bmips/setup.c
index 95f8f10d8697..31bcfa4e08b9 100644
--- a/arch/mips/bmips/setup.c
+++ b/arch/mips/bmips/setup.c
@@ -196,4 +196,4 @@ static int __init plat_dev_init(void)
return 0;
}

-device_initcall(plat_dev_init);
+arch_initcall(plat_dev_init);
--
2.20.1


2021-02-23 12:59:38

by Thomas Bogendoerfer

[permalink] [raw]
Subject: Re: [PATCH] mips: bmips: init clocks earlier

On Mon, Feb 22, 2021 at 09:33:50PM +0100, ?lvaro Fern?ndez Rojas wrote:
> device_initcall() is too late for bcm63xx.
> We need to call of_clk_init() earlier in order to properly boot.
>
> Signed-off-by: ?lvaro Fern?ndez Rojas <[email protected]>
> ---
> arch/mips/bmips/setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

applied to mips-next.

Thomas.

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