Skip to content

Fix PHY handle no longer parsing

Michael Sit Wei Hong linux-arm-kernel linux-snps-arc lkml netdev 5 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 5 repliesApplied 3/3
  2. v43 patches 1 replySuperseded
  3. v33 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches14 repliesSuperseded
v12 patches4 repliesSuperseded

Patches in v5 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: phylink: add phylink_expects_phy() methoddrivers/net/phy/phylink.c include/linux/phylink.h+20 -02 repliesApplied
2/3net: stmmac: check if MAC needs to attach to a PHYdrivers/net/ethernet/stmicro/stmmac/stmmac_main.c+3 -13 repliesApplied
3/3net: stmmac: remove redundant fixup to support fixed-link modedrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c+0 -10 repliesApplied

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchRussell King (Oracle)
1/3R-b
2/3
3/3

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

Read the v5 thread

Cover letter [PATCH net v5 0/3] Fix PHY handle no longer parsing

After the fixed link support was introduced, it is observed that PHY no longer attach to the MAC properly. So we introduce a helper function to determine if the MAC should expect to connect to a PHY and proceed accordingly.

Michael Sit Wei Hong (3):
net: phylink: add phylink_expects_phy() method
net: stmmac: check if MAC needs to attach to a PHY
net: stmmac: remove redundant fixup to support fixed-link mode

 .../net/ethernet/stmicro/stmmac/dwmac-intel.c |  1 -
 .../net/ethernet/stmicro/stmmac/stmmac_main.c |  4 +++-
 drivers/net/phy/phylink.c                     | 19 +++++++++++++++++++
 include/linux/phylink.h                       |  1 +
 4 files changed, 23 insertions(+), 2 deletions(-)

v2: Initialize fwnode before using the variable
v3: Introduced phylink_expects_phy() method as suggested by Russell King
remove xpcs_an_inband fixup instead of moving the fixed-link check as suggested by Andrew Lunn
v4: Modify phylink_expects_phy() to check for more complete set of
conditions when no PHY is needed and return false if met.
v5: Enhance phylink_expects_phy() description.

Signature · 1 line
2.34.1