From: Vladimir Oltean <olteanv@gmail•com>
To: davem@davemloft•net, linux@armlinux•org.uk, andrew@lunn•ch,
f.fainelli@gmail•com, hkallweit1@gmail•com
Cc: netdev@vger•kernel.org,
Alex Marginean <alexandru.marginean@nxp•com>,
Vladimir Oltean <vladimir.oltean@nxp•com>
Subject: [PATCH net-next] net: phylink: allow in-band AN for USXGMII
Date: Thu, 16 Jan 2020 19:39:30 +0200 [thread overview]
Message-ID: <20200116173930.14775-1-olteanv@gmail.com> (raw)
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>
---
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..f40d92ec32f8 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -299,6 +299,7 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
break;
case PHY_INTERFACE_MODE_10GKR:
+ case PHY_INTERFACE_MODE_USXGMII:
case PHY_INTERFACE_MODE_10GBASER:
phylink_set(pl->supported, 10baseT_Half);
phylink_set(pl->supported, 10baseT_Full);
--
2.17.1
next reply other threads:[~2020-01-16 18:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-16 17:39 Vladimir Oltean [this message]
2020-01-18 10:53 ` [PATCH net-next] net: phylink: allow in-band AN for USXGMII Russell King - ARM Linux admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200116173930.14775-1-olteanv@gmail.com \
--to=olteanv@gmail$(echo .)com \
--cc=alexandru.marginean@nxp$(echo .)com \
--cc=andrew@lunn$(echo .)ch \
--cc=davem@davemloft$(echo .)net \
--cc=f.fainelli@gmail$(echo .)com \
--cc=hkallweit1@gmail$(echo .)com \
--cc=linux@armlinux$(echo .)org.uk \
--cc=netdev@vger$(echo .)kernel.org \
--cc=vladimir.oltean@nxp$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox