]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'net-phylink-support-autoneg-configuration-for-sfps'
authorJakub Kicinski <kuba@kernel.org>
Tue, 8 Jul 2025 02:02:39 +0000 (19:02 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Jul 2025 02:02:39 +0000 (19:02 -0700)
Russell King says:

====================
net: phylink: support !autoneg configuration for SFPs

This series comes from discussion during a patch series that was posted
at the beginning of April, but these patches were never posted (I was
too busy!)

We restrict ->sfp_interfaces to those that the host system supports,
and ensure that ->sfp_interfaces is cleared when a SFP is removed. We
then add phylink_sfp_select_interface_speed() which will select an
appropriate interface from ->sfp_interfaces for the speed, and use that
in our phylink_ethtool_ksettings_set() when a SFP bus is present on a
directly connected host (not with a PHY.)
====================

Link: https://patch.msgid.link/aGT_hoBELDysGbrp@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge