790-28-v6.9-net-dsa-mt7530-do-not-set-priv-p5_interface-on-mt753.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 120581c81ad19704a9325505c83a82b7e760e96e Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <[email protected]>
  3. Date: Mon, 22 Jan 2024 08:35:57 +0300
  4. Subject: [PATCH 28/48] net: dsa: mt7530: do not set priv->p5_interface on
  5. mt7530_setup_port5()
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Running mt7530_setup_port5() from mt7530_setup() used to handle all cases
  10. of configuring port 5, including phylink.
  11. Setting priv->p5_interface under mt7530_setup_port5() makes sure that
  12. mt7530_setup_port5() from mt753x_phylink_mac_config() won't run.
  13. The commit ("net: dsa: mt7530: improve code path for setting up port 5")
  14. makes so that mt7530_setup_port5() from mt7530_setup() runs only on
  15. non-phylink cases.
  16. Get rid of unnecessarily setting priv->p5_interface under
  17. mt7530_setup_port5() as port 5 phylink configuration will be done by
  18. running mt7530_setup_port5() from mt753x_phylink_mac_config() now.
  19. Signed-off-by: Arınç ÜNAL <[email protected]>
  20. Reviewed-by: Vladimir Oltean <[email protected]>
  21. Link: https://lore.kernel.org/r/20240122-for-netnext-mt7530-improvements-1-v3-6-042401f2b279@arinc9.com
  22. Signed-off-by: Jakub Kicinski <[email protected]>
  23. ---
  24. drivers/net/dsa/mt7530.c | 2 --
  25. 1 file changed, 2 deletions(-)
  26. --- a/drivers/net/dsa/mt7530.c
  27. +++ b/drivers/net/dsa/mt7530.c
  28. @@ -971,8 +971,6 @@ static void mt7530_setup_port5(struct ds
  29. dev_dbg(ds->dev, "Setup P5, HWTRAP=0x%x, intf_sel=%s, phy-mode=%s\n",
  30. val, p5_intf_modes(priv->p5_intf_sel), phy_modes(interface));
  31. - priv->p5_interface = interface;
  32. -
  33. unlock_exit:
  34. mutex_unlock(&priv->reg_mutex);
  35. }