summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2021-02-16 22:20:54 +0300
committerDavid S. Miller <davem@davemloft.net>2021-02-17 01:15:12 +0300
commitf6813bdafdb370d4fb371922d86ff85b681a736b (patch)
treee2d5019af497ea55e8934718196462e7dda59ba2 /drivers/net
parent7331d1d4622ba7e668ec19cfba2ed7feb4a3084e (diff)
downloadlinux-f6813bdafdb370d4fb371922d86ff85b681a736b.tar.xz
net: phylink: Add 5gbase-r support
Add 5GBASER interface type and speed to phylink. Signed-off-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/phy/phylink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 84f6e197f965..053c92e02cd8 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -306,6 +306,10 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
phylink_set(pl->supported, 2500baseX_Full);
break;
+ case PHY_INTERFACE_MODE_5GBASER:
+ phylink_set(pl->supported, 5000baseT_Full);
+ break;
+
case PHY_INTERFACE_MODE_USXGMII:
case PHY_INTERFACE_MODE_10GKR:
case PHY_INTERFACE_MODE_10GBASER: