2024-04-10 22:14:32 +08:00
|
|
|
|
From f8faa3a04ca860b31f22d7d526c5e3f3de511a8f Mon Sep 17 00:00:00 2001
|
|
|
|
|
|
From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
|
|
|
|
|
|
Date: Fri, 1 Mar 2024 12:42:58 +0200
|
|
|
|
|
|
Subject: [PATCH 20/30] net: dsa: mt7530: set interrupt register only for
|
|
|
|
|
|
MT7530
|
|
|
|
|
|
MIME-Version: 1.0
|
|
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
|
|
|
|
Setting this register related to interrupts is only needed for the MT7530
|
|
|
|
|
|
switch. Make an exclusive check to ensure this.
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
|
|
|
|
|
|
Acked-by: Daniel Golle <daniel@makrotopia.org>
|
|
|
|
|
|
Tested-by: Daniel Golle <daniel@makrotopia.org>
|
|
|
|
|
|
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
|
|
|
|
|
---
|
|
|
|
|
|
drivers/net/dsa/mt7530.c | 2 +-
|
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
|
|
--- a/drivers/net/dsa/mt7530.c
|
|
|
|
|
|
+++ b/drivers/net/dsa/mt7530.c
|
2024-04-28 14:25:30 +08:00
|
|
|
|
@@ -2254,7 +2254,7 @@ mt7530_setup_irq(struct mt7530_priv *pri
|
2024-04-10 22:14:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* This register must be set for MT7530 to properly fire interrupts */
|
|
|
|
|
|
- if (priv->id != ID_MT7531)
|
|
|
|
|
|
+ if (priv->id == ID_MT7530 || priv->id == ID_MT7621)
|
|
|
|
|
|
mt7530_set(priv, MT7530_TOP_SIG_CTRL, TOP_SIG_CTRL_NORMAL);
|
|
|
|
|
|
|
|
|
|
|
|
ret = request_threaded_irq(priv->irq, NULL, mt7530_irq_thread_fn,
|