aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArınç ÜNAL <[email protected]>2024-03-01 12:42:58 +0200
committerPaolo Abeni <[email protected]>2024-03-05 12:23:42 +0100
commit804cd5f7059e2ca1e26cbd945b648bcba2d33766 (patch)
tree5baafb6dff7d28beec13640730eaf1feac109ef0
parent6ebe414b48cf43abb5abc17321dd4343a5a0d5ea (diff)
net: dsa: mt7530: set interrupt register only for MT7530
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 <[email protected]> Acked-by: Daniel Golle <[email protected]> Tested-by: Daniel Golle <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
-rw-r--r--drivers/net/dsa/mt7530.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index 94d4b2c87799..5cfd303b773f 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -2055,7 +2055,7 @@ mt7530_setup_irq(struct mt7530_priv *priv)
}
/* 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,