Skip to content

Add support to PHYLINK for LAN743x/PCI11x1x chips

Raju Lakkaraju lkml netdev 7 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 2/25 patches 38 repliesIn review
  2. v6 Latest5 patches 1 replyApplied 5/5
  3. v55 patches 4 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v45 patches5 repliesSuperseded
v34 patches11 repliesSuperseded
v2 posting 1/24 patches12 repliesSuperseded
v17 patches1 replySuperseded

Changes in v6 from the cover letter

- Remove the lan743x_find_max_speed( ) function. Not require
- Add EEE enable check before calling lan743x_mac_eee_enable( ) function

Patches in v6 All 5 applied

#Subject and filesSizeRepliesApplied
1/5net: phylink: Add phylink_set_fixed_link() to configure fixed link state in phylinkdrivers/net/phy/phylink.c include/linux/phylink.h+44 -00 repliesApplied
2/5net: lan743x: Create separate PCS power reset functiondrivers/net/ethernet/microchip/lan743x_main.c+29 -260 repliesApplied
3/5net: lan743x: Create separate Link Speed Duplex state functiondrivers/net/ethernet/microchip/lan743x_main.c+45 -300 repliesApplied
4/5net: lan743x: Migrate phylib to phylinkdrivers/net/ethernet/microchip/Kconfig drivers/net/ethernet/microchip/lan743x_main.c drivers/net/ethernet/microchip/lan743x_main.h+349 -2251 replyApplied
5/5net: lan743x: Add support to ethtool phylink get and set settingsdrivers/net/ethernet/microchip/lan743x_ethtool.c drivers/net/ethernet/microchip/lan743x_main.c drivers/net/ethernet/microchip/lan743x_main.h+67 -790 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAndrew LunnMaxime Chevallier
1/5R-b
2/5R-b
3/5R-b
4/5R-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH net-next V6 0/5] Add support to PHYLINK for LAN743x/PCI11x1x chips

This is the follow-up patch series of
https://lkml.iu.edu/hypermail/linux/kernel/2310.2/02078.html

Divide the PHYLINK adaptation and SFP modifications into two separate patch series.

The current patch series focuses on transitioning the LAN743x driver's PHY support from phylib to phylink.

Tested on PCI11010 Rev-1 Evaluation board

Change List:
============
V5 -> V6:
- Remove the lan743x_find_max_speed( ) function. Not require
- Add EEE enable check before calling lan743x_mac_eee_enable( ) function
V4 -> V5:
- Remove the fixed_phy_unregister( ) function. Not require
- Remove the "phydev->eee_enabled" check to update the MAC EEE enable/disable
- Call lan743x_mac_eee_enable() with true after update tx_lpi_timer.
- Add phy_support_eee() to initialize the EEE flags
V3 -> V4:
- Add fixed-link patch along with this series.
Note: Note: This code was developed by Mr.Russell King Ref:
https://lore.kernel.org/netdev/LV8PR11MB8700C786F5F1C274C73036CC9F8E2@LV8PR11MB8700.namprd11.prod.outlook.com/T/#me943adf54f1ea082edf294aba448fa003a116815
- Change phylink fixed-link function header's string from "Returns" to

    "Returns:" 

- Remove the EEE private variable from LAN743x adapter strcture and fix the EEE's set/get functions
- set the individual caps (i.e. _RGMII, _RGMII_ID, _RGMII_RXID and __RGMII_TXID) replace with phy_interface_set_rgmii( ) function
- Change lan743x_set_eee( ) to lan743x_mac_eee_enable( )

V2 -> V3:
- Remove the unwanted parens in each of these if() sub-blocks
- Replace "to_net_dev(config->dev)" with "netdev".
- Add GMII_ID/RGMII_TXID/RGMII_RXID in supported_interfaces
- Fix the lan743x_phy_handle_exists( ) return type

V1 -> V2:
- Fix the Russell King's comments i.e. remove the speed, duplex update in

    lan743x_phylink_mac_config( )

- pre-March 2020 legacy support has been removed

V0 -> V1:
- Integrate with Synopsys DesignWare XPCS drivers
- Based on external review comments,
- Changes made to SGMII interface support only 1G/100M/10M bps speed
- Changes made to 2500Base-X interface support only 2.5Gbps speed
- Add check for not is_sgmii_en with is_sfp_support_en support
- Change the "pci11x1x_strap_get_status" function return type from void to int
- Add ethtool phylink wol, eee, pause get/set functions

Raju Lakkaraju (5):
net: phylink: Add phylink_set_fixed_link() to configure fixed link
state in phylink
net: lan743x: Create separate PCS power reset function
net: lan743x: Create separate Link Speed Duplex state function
net: lan743x: Migrate phylib to phylink
net: lan743x: Add support to ethtool phylink get and set settings

 drivers/net/ethernet/microchip/Kconfig        |   5 +-
 .../net/ethernet/microchip/lan743x_ethtool.c  | 123 ++--
 drivers/net/ethernet/microchip/lan743x_main.c | 646 +++++++++++-------
 drivers/net/ethernet/microchip/lan743x_main.h |   4 +
 drivers/net/phy/phylink.c                     |  42 ++
 include/linux/phylink.h                       |   2 +
 6 files changed, 498 insertions(+), 324 deletions(-)
Signature · 1 line
2.34.1