790-17-v6.5-net-dsa-mt7530-update-PCS-driver-to-use-neg_mode.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From fb6858e2c3b931433ea4d25871c272ee4c01bd99 Mon Sep 17 00:00:00 2001
  2. From: "Russell King (Oracle)" <[email protected]>
  3. Date: Fri, 16 Jun 2023 13:07:29 +0100
  4. Subject: [PATCH 17/48] net: dsa: mt7530: update PCS driver to use neg_mode
  5. Update mt7530's embedded PCS driver to use neg_mode, even though it
  6. makes no use of it or the "mode" argument. This makes the driver
  7. consistent with converted drivers.
  8. Signed-off-by: Russell King (Oracle) <[email protected]>
  9. Link: https://lore.kernel.org/r/[email protected]
  10. Signed-off-by: Jakub Kicinski <[email protected]>
  11. ---
  12. drivers/net/dsa/mt7530.c | 3 ++-
  13. 1 file changed, 2 insertions(+), 1 deletion(-)
  14. --- a/drivers/net/dsa/mt7530.c
  15. +++ b/drivers/net/dsa/mt7530.c
  16. @@ -3036,7 +3036,7 @@ static void mt7530_pcs_get_state(struct
  17. state->pause |= MLO_PAUSE_TX;
  18. }
  19. -static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigned int mode,
  20. +static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
  21. phy_interface_t interface,
  22. const unsigned long *advertising,
  23. bool permit_pause_to_mac)
  24. @@ -3064,6 +3064,7 @@ mt753x_setup(struct dsa_switch *ds)
  25. /* Initialise the PCS devices */
  26. for (i = 0; i < priv->ds->num_ports; i++) {
  27. priv->pcs[i].pcs.ops = priv->info->pcs_ops;
  28. + priv->pcs[i].pcs.neg_mode = true;
  29. priv->pcs[i].priv = priv;
  30. priv->pcs[i].port = i;
  31. }