[net-next,v4,0/2] dsa: lan9303: Move to PHYLINK

Message ID 20221207232828.7367-1-jerry.ray@microchip.com
Headers
Series dsa: lan9303: Move to PHYLINK |

Message

Jerry Ray Dec. 7, 2022, 11:28 p.m. UTC
  This patch series moves the lan9303 driver to use the phylink
api away from phylib.

Note a preparatory patch addresses whitespace issues to make the
dsa_switch_ops code consistent.

Note the .port_max_mtu api patch is now removed from this series.  It
was unrelated and has little to no value if the api is never being
called for the cpu port.

Migrating to phylink means removing the .adjust_link api. The
functionality from the adjust_link is moved to the phylink_mac_link_up
api.  The code being removed only affected the cpu port.

---
v3-> v4:
  - Addressed whitespace issues as a separate patch.
  - Removed port_max_mtu api patch as it is unrelated to phylink migration.
  - Reworked the implementation to preserve the adjust_link functionality
    by including it in the phylink_mac_link_up api.

v2-> v3:
  Added back in disabling Turbo Mode on the CPU MII interface.
  Removed the unnecessary clearing of the phyvsupported interfaces.
v1-> v2:
  corrected the reported mtu size, removing ETH_HLEN and ETH_FCS_LEN

 drivers/net/dsa/lan9303-core.c | 93 ++++++++++++--------
 1 file changed, 56 insertions(+), 37 deletions(-)