diff options
author | Arınç ÜNAL <arinc.unal@arinc9.com> | 2024-03-01 13:42:58 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-03-05 14:23:42 +0300 |
commit | 804cd5f7059e2ca1e26cbd945b648bcba2d33766 (patch) | |
tree | 5baafb6dff7d28beec13640730eaf1feac109ef0 | |
parent | 6ebe414b48cf43abb5abc17321dd4343a5a0d5ea (diff) | |
download | linux-804cd5f7059e2ca1e26cbd945b648bcba2d33766.tar.xz |
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 <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>
-rw-r--r-- | drivers/net/dsa/mt7530.c | 2 |
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, |