Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phylink: allow RGMII/RTBI in-band status

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>

authored by

Qingfang DENG and committed by
David S. Miller
d73ffc08 5b3b51a1

+5
+5
drivers/net/phy/phylink.c
··· 634 634 case PHY_INTERFACE_MODE_SGMII: 635 635 case PHY_INTERFACE_MODE_QSGMII: 636 636 case PHY_INTERFACE_MODE_QUSGMII: 637 + case PHY_INTERFACE_MODE_RGMII: 638 + case PHY_INTERFACE_MODE_RGMII_ID: 639 + case PHY_INTERFACE_MODE_RGMII_RXID: 640 + case PHY_INTERFACE_MODE_RGMII_TXID: 641 + case PHY_INTERFACE_MODE_RTBI: 637 642 phylink_set(pl->supported, 10baseT_Half); 638 643 phylink_set(pl->supported, 10baseT_Full); 639 644 phylink_set(pl->supported, 100baseT_Half);