All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net-next] net: phylink: allow in-band AN for USXGMII
@ 2020-01-18 12:19 Vladimir Oltean
  2020-01-20  9:27 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Oltean @ 2020-01-18 12:19 UTC (permalink / raw)
  To: netdev, davem, linux, andrew, f.fainelli, hkallweit1; +Cc: Alex Marginean

From: Alex Marginean <alexandru.marginean@nxp.com>

USXGMII supports passing link information in-band between PHY and MAC PCS,
add it to the list of protocols that support in-band AN mode.

Being a MAC-PHY protocol that can auto-negotiate link speeds up to 10
Gbps, we populate the initial supported mask with the entire spectrum of
link modes up to 10G that PHYLINK supports, and we let the driver reduce
that mask in its .phylink_validate method.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
Changes in v2:
- copied netdev list
- Reordered USXGMII with 10GKR

 drivers/net/phy/phylink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index efabbfa4a6d3..40da85c70eba 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -298,6 +298,7 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
 			phylink_set(pl->supported, 2500baseX_Full);
 			break;
 
+		case PHY_INTERFACE_MODE_USXGMII:
 		case PHY_INTERFACE_MODE_10GKR:
 		case PHY_INTERFACE_MODE_10GBASER:
 			phylink_set(pl->supported, 10baseT_Half);
-- 
2.17.1


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

* Re: [PATCH v2 net-next] net: phylink: allow in-band AN for USXGMII
  2020-01-18 12:19 [PATCH v2 net-next] net: phylink: allow in-band AN for USXGMII Vladimir Oltean
@ 2020-01-20  9:27 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-01-20  9:27 UTC (permalink / raw)
  To: olteanv
  Cc: netdev, linux, andrew, f.fainelli, hkallweit1, alexandru.marginean

From: Vladimir Oltean <olteanv@gmail.com>
Date: Sat, 18 Jan 2020 14:19:15 +0200

> From: Alex Marginean <alexandru.marginean@nxp.com>
> 
> USXGMII supports passing link information in-band between PHY and MAC PCS,
> add it to the list of protocols that support in-band AN mode.
> 
> Being a MAC-PHY protocol that can auto-negotiate link speeds up to 10
> Gbps, we populate the initial supported mask with the entire spectrum of
> link modes up to 10G that PHYLINK supports, and we let the driver reduce
> that mask in its .phylink_validate method.
> 
> Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> ---
> Changes in v2:
> - copied netdev list
> - Reordered USXGMII with 10GKR

Applied, thanks.

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

end of thread, other threads:[~2020-01-20  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-18 12:19 [PATCH v2 net-next] net: phylink: allow in-band AN for USXGMII Vladimir Oltean
2020-01-20  9:27 ` David Miller

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.