Skip to content

Commit 76ce517

Browse files
parakatsbogend
authored andcommitted
MIPS: ralink: mt7621: avoid to init common ralink reset controller
Commit 38a8553 ("clk: ralink: make system controller node a reset provider") make system controller a reset provider for mt7621 ralink SoCs. Ralink init code also tries to start previous common reset controller which at the end tries to find device tree node 'ralink,rt2880-reset'. mt7621 device tree file is not using at all this node anymore. Hence avoid to init this common reset controller for mt7621 ralink SoCs to avoid 'Failed to find reset controller node' boot error trace error. Fixes: 64b2d6f ("staging: mt7621-dts: align resets with binding documentation") Signed-off-by: Sergio Paracuellos <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 4c587a9 commit 76ce517

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/mips/ralink/of.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <asm/bootinfo.h>
2222
#include <asm/addrspace.h>
2323
#include <asm/prom.h>
24+
#include <asm/mach-ralink/ralink_regs.h>
2425

2526
#include "common.h"
2627

@@ -81,7 +82,8 @@ static int __init plat_of_setup(void)
8182
__dt_register_buses(soc_info.compatible, "palmbus");
8283

8384
/* make sure that the reset controller is setup early */
84-
ralink_rst_init();
85+
if (ralink_soc != MT762X_SOC_MT7621AT)
86+
ralink_rst_init();
8587

8688
return 0;
8789
}

0 commit comments

Comments
 (0)