netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v3 0/3] Fix PHY handle no longer parsing
@ 2023-03-24  8:16 Michael Sit Wei Hong
  2023-03-24  8:16 ` [PATCH net v3 1/3] net: phylink: add phylink_expects_phy() method Michael Sit Wei Hong
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Michael Sit Wei Hong @ 2023-03-24  8:16 UTC (permalink / raw)
  To: Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
	David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Maxime Coquelin, Ong Boon Leong, netdev, linux-stm32,
	linux-arm-kernel, linux-kernel, linux
  Cc: Looi Hong Aun, Voon Weifeng, Lai Peter Jun Ann

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
-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-04-05 17:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-24  8:16 [PATCH net v3 0/3] Fix PHY handle no longer parsing Michael Sit Wei Hong
2023-03-24  8:16 ` [PATCH net v3 1/3] net: phylink: add phylink_expects_phy() method Michael Sit Wei Hong
2023-03-29  1:57   ` Jakub Kicinski
2023-03-29  9:01     ` Russell King (Oracle)
2023-03-29  9:34       ` Sit, Michael Wei Hong
2023-03-29  9:48         ` Russell King (Oracle)
2023-03-24  8:16 ` [PATCH net v3 2/3] net: stmmac: check if MAC needs to attach to a PHY Michael Sit Wei Hong
2023-04-05 17:02   ` Guenter Roeck
2023-04-05 17:08     ` Russell King (Oracle)
2023-03-24  8:16 ` [PATCH net v3 3/3] net: stmmac: remove redundant fixup to support fixed-link mode Michael Sit Wei Hong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).