net: phylink: Add 5gbase-r support
authorMarek Behún <kabel@kernel.org>
Tue, 16 Feb 2021 19:20:54 +0000 (20:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2021 22:15:12 +0000 (14:15 -0800)
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>
drivers/net/phy/phylink.c

index 84f6e19..053c92e 100644 (file)
@@ -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: