790-38-v6.9-net-dsa-mt7530-set-interrupt-register-only-for-MT753.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From 0e297b1c662825f7dcd97272323c81f502987e0f Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <[email protected]>
  3. Date: Fri, 1 Mar 2024 12:42:58 +0200
  4. Subject: [PATCH 38/48] net: dsa: mt7530: set interrupt register only for
  5. MT7530
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Setting this register related to interrupts is only needed for the MT7530
  10. switch. Make an exclusive check to ensure this.
  11. Signed-off-by: Arınç ÜNAL <[email protected]>
  12. Acked-by: Daniel Golle <[email protected]>
  13. Tested-by: Daniel Golle <[email protected]>
  14. Signed-off-by: Paolo Abeni <[email protected]>
  15. ---
  16. drivers/net/dsa/mt7530.c | 2 +-
  17. 1 file changed, 1 insertion(+), 1 deletion(-)
  18. --- a/drivers/net/dsa/mt7530.c
  19. +++ b/drivers/net/dsa/mt7530.c
  20. @@ -2084,7 +2084,7 @@ mt7530_setup_irq(struct mt7530_priv *pri
  21. }
  22. /* This register must be set for MT7530 to properly fire interrupts */
  23. - if (priv->id != ID_MT7531)
  24. + if (priv->id == ID_MT7530 || priv->id == ID_MT7621)
  25. mt7530_set(priv, MT7530_TOP_SIG_CTRL, TOP_SIG_CTRL_NORMAL);
  26. ret = request_threaded_irq(priv->irq, NULL, mt7530_irq_thread_fn,