* [PATCH net-next] net: mvpp2: add xlg pcs inband capabilities
@ 2025-08-31 17:01 Russell King (Oracle)
2025-08-31 22:28 ` Daniel Golle
2025-09-02 23:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2025-08-31 17:01 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Marcin Wojtas, netdev, Paolo Abeni
Add PCS inband capabilities for XLG in the Marvell PP2 driver, so
phylink knows that 5G and 10G speeds have no inband capabilities.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
The lack of this patch meant that I didn't see the problems with 10G
SFP modules, as phylink becomes permissive without these capabilities,
thereby causing a weakness in my run-time testing.
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
index 8ebb985d2573..35d1184458fd 100644
--- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
@@ -6222,6 +6222,12 @@ static struct mvpp2_port *mvpp2_pcs_gmac_to_port(struct phylink_pcs *pcs)
return container_of(pcs, struct mvpp2_port, pcs_gmac);
}
+static unsigned int mvpp2_xjg_pcs_inband_caps(struct phylink_pcs *pcs,
+ phy_interface_t interface)
+{
+ return LINK_INBAND_DISABLE;
+}
+
static void mvpp2_xlg_pcs_get_state(struct phylink_pcs *pcs,
unsigned int neg_mode,
struct phylink_link_state *state)
@@ -6256,6 +6262,7 @@ static int mvpp2_xlg_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
}
static const struct phylink_pcs_ops mvpp2_phylink_xlg_pcs_ops = {
+ .pcs_inband_caps = mvpp2_xjg_pcs_inband_caps,
.pcs_get_state = mvpp2_xlg_pcs_get_state,
.pcs_config = mvpp2_xlg_pcs_config,
};
--
2.47.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: mvpp2: add xlg pcs inband capabilities
2025-08-31 17:01 [PATCH net-next] net: mvpp2: add xlg pcs inband capabilities Russell King (Oracle)
@ 2025-08-31 22:28 ` Daniel Golle
2025-09-02 23:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Golle @ 2025-08-31 22:28 UTC (permalink / raw)
To: Russell King (Oracle)
Cc: Andrew Lunn, Heiner Kallweit, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Marcin Wojtas, netdev, Paolo Abeni
On Sun, Aug 31, 2025 at 06:01:51PM +0100, Russell King (Oracle) wrote:
> Add PCS inband capabilities for XLG in the Marvell PP2 driver, so
> phylink knows that 5G and 10G speeds have no inband capabilities.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Daniel Golle <daniel@makrotopia.org>
> ---
> The lack of this patch meant that I didn't see the problems with 10G
> SFP modules, as phylink becomes permissive without these capabilities,
> thereby causing a weakness in my run-time testing.
>
> drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
> index 8ebb985d2573..35d1184458fd 100644
> --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
> +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
> @@ -6222,6 +6222,12 @@ static struct mvpp2_port *mvpp2_pcs_gmac_to_port(struct phylink_pcs *pcs)
> return container_of(pcs, struct mvpp2_port, pcs_gmac);
> }
>
> +static unsigned int mvpp2_xjg_pcs_inband_caps(struct phylink_pcs *pcs,
> + phy_interface_t interface)
> +{
> + return LINK_INBAND_DISABLE;
> +}
> +
> static void mvpp2_xlg_pcs_get_state(struct phylink_pcs *pcs,
> unsigned int neg_mode,
> struct phylink_link_state *state)
> @@ -6256,6 +6262,7 @@ static int mvpp2_xlg_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
> }
>
> static const struct phylink_pcs_ops mvpp2_phylink_xlg_pcs_ops = {
> + .pcs_inband_caps = mvpp2_xjg_pcs_inband_caps,
> .pcs_get_state = mvpp2_xlg_pcs_get_state,
> .pcs_config = mvpp2_xlg_pcs_config,
> };
> --
> 2.47.2
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: mvpp2: add xlg pcs inband capabilities
2025-08-31 17:01 [PATCH net-next] net: mvpp2: add xlg pcs inband capabilities Russell King (Oracle)
2025-08-31 22:28 ` Daniel Golle
@ 2025-09-02 23:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-02 23:00 UTC (permalink / raw)
To: Russell King
Cc: andrew, hkallweit1, andrew+netdev, davem, edumazet, kuba,
marcin.s.wojtas, netdev, pabeni
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 31 Aug 2025 18:01:51 +0100 you wrote:
> Add PCS inband capabilities for XLG in the Marvell PP2 driver, so
> phylink knows that 5G and 10G speeds have no inband capabilities.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> ---
> The lack of this patch meant that I didn't see the problems with 10G
> SFP modules, as phylink becomes permissive without these capabilities,
> thereby causing a weakness in my run-time testing.
>
> [...]
Here is the summary with links:
- [net-next] net: mvpp2: add xlg pcs inband capabilities
https://git.kernel.org/netdev/net-next/c/99502c61e80c
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:[~2025-09-02 23:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-31 17:01 [PATCH net-next] net: mvpp2: add xlg pcs inband capabilities Russell King (Oracle)
2025-08-31 22:28 ` Daniel Golle
2025-09-02 23:00 ` 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).