Skip to contentSkip to conversation

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

PATCH Applied Qingfang DENG 2 participants 2 messages Aug 24, 2022 – Aug 26, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
v1 -> v2: rebased and targeted to net-next.

 drivers/net/phy/phylink.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/phy/phylink.c +5 -0
index d2455df1d8d2..e487bdea9b47 100644
@@ -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);
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 8 lines · On Wed, 24 Aug 2022 14:10:34 +0800 you wrote:

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.

[...]

Here is the summary with links:
- [v2,net-next] net: phylink: allow RGMII/RTBI in-band status

    https://git.kernel.org/netdev/net-next/c/d73ffc08824d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html