]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: phylink: allow RGMII/RTBI in-band status
authorQingfang DENG <dqfext@gmail.com>
Wed, 24 Aug 2022 06:10:34 +0000 (14:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2022 09:58:43 +0000 (10:58 +0100)
As per RGMII specification v2.0, section 3.4.1, RGMII/RTBI has an
optional in-band status feature where the PHY's link status, speed and
duplex mode can be passed to the MAC.
Allow RGMII/RTBI to use in-band status.

Signed-off-by: Qingfang DENG <dqfext@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c

index d2455df1d8d2ff45f7df13fc51f21e51122c6b88..e487bdea9b47c948c08812b6180a0727ba1cd2bb 100644 (file)
@@ -634,6 +634,11 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
                case PHY_INTERFACE_MODE_SGMII:
                case PHY_INTERFACE_MODE_QSGMII:
                case PHY_INTERFACE_MODE_QUSGMII:
+               case PHY_INTERFACE_MODE_RGMII:
+               case PHY_INTERFACE_MODE_RGMII_ID:
+               case PHY_INTERFACE_MODE_RGMII_RXID:
+               case PHY_INTERFACE_MODE_RGMII_TXID:
+               case PHY_INTERFACE_MODE_RTBI:
                        phylink_set(pl->supported, 10baseT_Half);
                        phylink_set(pl->supported, 10baseT_Full);
                        phylink_set(pl->supported, 100baseT_Half);