mbox series

[net-next,v2,0/3] net: phylink: simplify SFP PHY attachment

Message ID Zxj8_clRmDA_G7uH@shell.armlinux.org.uk (mailing list archive)
Headers show
Series net: phylink: simplify SFP PHY attachment | expand

Message

Russell King (Oracle) Oct. 23, 2024, 1:41 p.m. UTC
Hi,

These two patches simplify how we attach SFP PHYs.

The first patch notices that at the two sites where we call
sfp_select_interface(), if that fails, we always print the same error.
Move this into its own function.

The second patch adds an additional level of validation, checking that
the returned interface is one that is supported by the MAC/PCS.

The last patch simplifies how SFP PHYs are attached, reducing the
number of times that we do validation in this path.

 drivers/net/phy/phylink.c | 83 ++++++++++++++++++++++++-----------------------
 1 file changed, 42 insertions(+), 41 deletions(-)

Changes since v1:
 - Fixed build warning.
 - Added r-b/t-b from Maxime.