1 From 4446e9789e662fe53dfcfe34551b5b74a013086c Mon Sep 17 00:00:00 2001
2 From: Vladimir Oltean <vladimir.oltean@nxp.com>
3 Date: Fri, 22 Nov 2019 13:46:46 +0200
4 Subject: [PATCH] net: phylink: make QSGMII a valid PHY mode for in-band AN
6 QSGMII is just SGMII clocked at a higher frequency (5 Gbaud vs 1.25
7 Gbaud). Logically it is just 4 SGMII interfaces multiplexed onto the
8 same physical lanes. Each MAC PCS has its own in-band AN process with
9 the system side of the QSGMII PHY, which is identical to the regular
10 SGMII AN process. So allow QSGMII as a valid in-band AN mode.
12 Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
14 drivers/net/phy/phylink.c | 1 +
15 1 file changed, 1 insertion(+)
17 --- a/drivers/net/phy/phylink.c
18 +++ b/drivers/net/phy/phylink.c
19 @@ -283,6 +283,7 @@ static int phylink_parse_mode(struct phy
21 switch (pl->link_config.interface) {
22 case PHY_INTERFACE_MODE_SGMII:
23 + case PHY_INTERFACE_MODE_QSGMII:
24 phylink_set(pl->supported, 10baseT_Half);
25 phylink_set(pl->supported, 10baseT_Full);
26 phylink_set(pl->supported, 100baseT_Half);