public inbox for linux-mips@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mips: ralink: update CPU clock index
@ 2026-02-24  2:22 Shiji Yang
  2026-02-24  7:31 ` Sergio Paracuellos
  2026-04-01 20:34 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 3+ messages in thread
From: Shiji Yang @ 2026-02-24  2:22 UTC (permalink / raw)
  To: linux-mips, linux-kernel
  Cc: John Crispin, Sergio Paracuellos, Thomas Bogendoerfer, stable,
	Mieczyslaw Nalewaj

Update CPU clock index to match the clock driver changes.

Fixes: d34db686a3d7 ("clk: ralink: mtmips: fix clocks probe order in oldest ralink SoCs")
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
---
 arch/mips/ralink/clk.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/mips/ralink/clk.c b/arch/mips/ralink/clk.c
index 9db73fcac..5c1eb46ef 100644
--- a/arch/mips/ralink/clk.c
+++ b/arch/mips/ralink/clk.c
@@ -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;
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-01 20:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-24  2:22 [PATCH] mips: ralink: update CPU clock index Shiji Yang
2026-02-24  7:31 ` Sergio Paracuellos
2026-04-01 20:34 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox