All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: sfp: allow use 2500base-X for 2500base-T modules
@ 2024-04-28 14:51 Russell King (Oracle)
  2024-04-29  8:26 ` Daniel Machon
  2024-04-30 13:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2024-04-28 14:51 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, netdev

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(-)

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) ||
-- 
2.30.2


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

* Re: [PATCH net-next] net: sfp: allow use 2500base-X for 2500base-T modules
  2024-04-28 14:51 [PATCH net-next] net: sfp: allow use 2500base-X for 2500base-T modules Russell King (Oracle)
@ 2024-04-29  8:26 ` Daniel Machon
  2024-04-30 13:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Machon @ 2024-04-29  8:26 UTC (permalink / raw)
  To: Russell King (Oracle)
  Cc: Andrew Lunn, Heiner Kallweit, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev

> Allow use of 2500base-X interface mode for PHY modules that support
> 2500base-T.

Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
 

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

* Re: [PATCH net-next] net: sfp: allow use 2500base-X for 2500base-T modules
  2024-04-28 14:51 [PATCH net-next] net: sfp: allow use 2500base-X for 2500base-T modules Russell King (Oracle)
  2024-04-29  8:26 ` Daniel Machon
@ 2024-04-30 13:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-04-30 13:30 UTC (permalink / raw)
  To: Russell King; +Cc: andrew, hkallweit1, davem, edumazet, kuba, pabeni, netdev

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2024-04-30 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28 14:51 [PATCH net-next] net: sfp: allow use 2500base-X for 2500base-T modules Russell King (Oracle)
2024-04-29  8:26 ` Daniel Machon
2024-04-30 13:30 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.