[net,v3,0/3] Fix PHY handle no longer parsing

Message ID 20230324081656.2969663-1-michael.wei.hong.sit@intel.com
Headers
Series Fix PHY handle no longer parsing |

Message

Sit, Michael Wei Hong March 24, 2023, 8:16 a.m. UTC
  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

 drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c |  1 -
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |  4 +++-
 drivers/net/phy/phylink.c                         | 13 +++++++++++++
 include/linux/phylink.h                           |  1 +
 4 files changed, 17 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