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

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

Message

Sit, Michael Wei Hong March 30, 2023, 9:14 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

 .../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.
  

Comments

patchwork-bot+netdevbpf@kernel.org March 31, 2023, 8:30 a.m. UTC | #1
Hello:

This series was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:

On Thu, 30 Mar 2023 17:14:01 +0800 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [net,v5,1/3] net: phylink: add phylink_expects_phy() method
    https://git.kernel.org/netdev/net/c/653a180957a8
  - [net,v5,2/3] net: stmmac: check if MAC needs to attach to a PHY
    https://git.kernel.org/netdev/net/c/fe2cfbc96803
  - [net,v5,3/3] net: stmmac: remove redundant fixup to support fixed-link mode
    https://git.kernel.org/netdev/net/c/6fc21a6ed595

You are awesome, thank you!