Skip to contentSkip to conversation

mips: ralink: update CPU clock index

PATCH Applied Shiji Yang 3 participants 3 messages Feb 24 – Apr 1

Subsystems (3)
lore
Share & tools
lore

Shiji Yang

author
#0 lore raw

PATCH 1/1 mips: ralink: update CPU clock index

Update CPU clock index to match the clock driver changes.

Fixes d34db686a3d7 ("clk: ralink: mtmips: fix clocks probe order in oldest ralink SoCs")
---
 arch/mips/ralink/clk.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/mips/ralink/clk.c +4 -4
index 9db73fcac..5c1eb46ef 100644
@@ -21,16 +21,16 @@ static const char *clk_cpu(int *idx)
 {
 	switch (ralink_soc) {
 	case RT2880_SOC:
-		*idx = 0;
+		*idx = 1;
 		return "ralink,rt2880-sysc";
 	case RT3883_SOC:
-		*idx = 0;
+		*idx = 1;
 		return "ralink,rt3883-sysc";
 	case RT305X_SOC_RT3050:
-		*idx = 0;
+		*idx = 1;
 		return "ralink,rt3050-sysc";
 	case RT305X_SOC_RT3052:
-		*idx = 0;
+		*idx = 1;
 		return "ralink,rt3052-sysc";
 	case RT305X_SOC_RT3350:
 		*idx = 1;
Signature · 1 line
2.51.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Shiji Yang

Update CPU clock index to match the clock driver changes.

Fixes d34db686a3d7 ("clk: ralink: mtmips: fix clocks probe order in oldest ralink SoCs")
---
 arch/mips/ralink/clk.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Thanks,
Sergio Paracuellos

maintainer Applied
#2 lore raw
In reply to Shiji Yang
Quoted 8 lines · Shiji Yang

Update CPU clock index to match the clock driver changes.

Fixes d34db686a3d7 ("clk: ralink: mtmips: fix clocks probe order in oldest ralink SoCs")
---
 arch/mips/ralink/clk.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

applied to mips-fixes

Thomas.

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