* [PATCH net-next] net: sfp: fill also 5gbase-r and 25gbase-r modes in sfp_parse_support()
@ 2022-10-07 8:48 Marek Behún
2022-10-07 13:50 ` Russell King (Oracle)
2022-10-11 1:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Marek Behún @ 2022-10-07 8:48 UTC (permalink / raw)
To: netdev, David S. Miller, Jakub Kicinski
Cc: Russell King, Andrew Lunn, Marek Behún
Fill in also 5gbase-r and 25gbase-r PHY interface modes into the
phy_interface_t bitmap in sfp_parse_support().
Fixes: fd580c983031 ("net: sfp: augment SFP parsing with phy_interface_t bitmap")
Signed-off-by: Marek Behún <kabel@kernel.org>
---
drivers/net/phy/sfp-bus.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c
index 29e3fa86bac3..daac293e8ede 100644
--- a/drivers/net/phy/sfp-bus.c
+++ b/drivers/net/phy/sfp-bus.c
@@ -257,6 +257,7 @@ void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
case SFF8024_ECC_100GBASE_SR4_25GBASE_SR:
phylink_set(modes, 100000baseSR4_Full);
phylink_set(modes, 25000baseSR_Full);
+ __set_bit(PHY_INTERFACE_MODE_25GBASER, interfaces);
break;
case SFF8024_ECC_100GBASE_LR4_25GBASE_LR:
case SFF8024_ECC_100GBASE_ER4_25GBASE_ER:
@@ -268,6 +269,7 @@ void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
case SFF8024_ECC_25GBASE_CR_S:
case SFF8024_ECC_25GBASE_CR_N:
phylink_set(modes, 25000baseCR_Full);
+ __set_bit(PHY_INTERFACE_MODE_25GBASER, interfaces);
break;
case SFF8024_ECC_10GBASE_T_SFI:
case SFF8024_ECC_10GBASE_T_SR:
@@ -276,6 +278,7 @@ void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
break;
case SFF8024_ECC_5GBASE_T:
phylink_set(modes, 5000baseT_Full);
+ __set_bit(PHY_INTERFACE_MODE_5GBASER, interfaces);
break;
case SFF8024_ECC_2_5GBASE_T:
phylink_set(modes, 2500baseT_Full);
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] net: sfp: fill also 5gbase-r and 25gbase-r modes in sfp_parse_support()
2022-10-07 8:48 [PATCH net-next] net: sfp: fill also 5gbase-r and 25gbase-r modes in sfp_parse_support() Marek Behún
@ 2022-10-07 13:50 ` Russell King (Oracle)
2022-10-11 1:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2022-10-07 13:50 UTC (permalink / raw)
To: Marek Behún; +Cc: netdev, David S. Miller, Jakub Kicinski, Andrew Lunn
On Fri, Oct 07, 2022 at 10:48:44AM +0200, Marek Behún wrote:
> Fill in also 5gbase-r and 25gbase-r PHY interface modes into the
> phy_interface_t bitmap in sfp_parse_support().
>
> Fixes: fd580c983031 ("net: sfp: augment SFP parsing with phy_interface_t bitmap")
> Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net-next] net: sfp: fill also 5gbase-r and 25gbase-r modes in sfp_parse_support()
2022-10-07 8:48 [PATCH net-next] net: sfp: fill also 5gbase-r and 25gbase-r modes in sfp_parse_support() Marek Behún
2022-10-07 13:50 ` Russell King (Oracle)
@ 2022-10-11 1:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-10-11 1:20 UTC (permalink / raw)
To: =?utf-8?q?Marek_Beh=C3=BAn_=3Ckabel=40kernel=2Eorg=3E?=
Cc: netdev, davem, kuba, rmk+kernel, andrew
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 7 Oct 2022 10:48:44 +0200 you wrote:
> Fill in also 5gbase-r and 25gbase-r PHY interface modes into the
> phy_interface_t bitmap in sfp_parse_support().
>
> Fixes: fd580c983031 ("net: sfp: augment SFP parsing with phy_interface_t bitmap")
> Signed-off-by: Marek Behún <kabel@kernel.org>
> ---
> drivers/net/phy/sfp-bus.c | 3 +++
> 1 file changed, 3 insertions(+)
Here is the summary with links:
- [net-next] net: sfp: fill also 5gbase-r and 25gbase-r modes in sfp_parse_support()
https://git.kernel.org/netdev/net/c/5b4c189d660a
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:[~2022-10-11 1:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-07 8:48 [PATCH net-next] net: sfp: fill also 5gbase-r and 25gbase-r modes in sfp_parse_support() Marek Behún
2022-10-07 13:50 ` Russell King (Oracle)
2022-10-11 1:20 ` patchwork-bot+netdevbpf
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).