Message ID | E1s15rv-00AHyk-5S@rmk-PC.armlinux.org.uk (mailing list archive) |
---|---|
State | Accepted |
Commit | 8a3163b6714be5f544846a2c200916d848556d57 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net: sfp: allow use 2500base-X for 2500base-T modules | expand |
> Allow use of 2500base-X interface mode for PHY modules that support > 2500base-T. Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni <pabeni@redhat.com>: On Sun, 28 Apr 2024 15:51:07 +0100 you wrote: > Allow use of 2500base-X interface mode for PHY modules that support > 2500base-T. > > Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> > --- > drivers/net/phy/sfp-bus.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Here is the summary with links: - [net-next] net: sfp: allow use 2500base-X for 2500base-T modules https://git.kernel.org/netdev/net-next/c/8a3163b6714b You are awesome, thank you!
diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c index 413021619afe..c6e3baf00f23 100644 --- a/drivers/net/phy/sfp-bus.c +++ b/drivers/net/phy/sfp-bus.c @@ -373,7 +373,8 @@ phy_interface_t sfp_select_interface(struct sfp_bus *bus, if (phylink_test(link_modes, 5000baseT_Full)) return PHY_INTERFACE_MODE_5GBASER; - if (phylink_test(link_modes, 2500baseX_Full)) + if (phylink_test(link_modes, 2500baseX_Full) || + phylink_test(link_modes, 2500baseT_Full)) return PHY_INTERFACE_MODE_2500BASEX; if (phylink_test(link_modes, 1000baseT_Half) ||
Allow use of 2500base-X interface mode for PHY modules that support 2500base-T. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> --- drivers/net/phy/sfp-bus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)