Skip to contentSkip to conversation

net: dsa: microchip: fix RGMII error in KSZ DSA driver

PATCH Applied [email protected] 2 participants 2 messages May 31, 2024

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

PATCH 1/1 net: dsa: microchip: fix RGMII error in KSZ DSA driver

From: Tristram Ha <[email protected]>

The driver should return RMII interface when XMII is running in RMII mode.

Fixes 0ab7f6bf1675 ("net: dsa: microchip: ksz9477: use common xmii function")

---
v1
- Add review from Andrew Lunn

 drivers/net/dsa/microchip/ksz_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/microchip/ksz_common.c +1 -1
index 1e0085cd9a9a..2818e24e2a51 100644
@@ -3142,7 +3142,7 @@ phy_interface_t ksz_get_xmii(struct ksz_device *dev, int port, bool gbit)
 		else
 			interface = PHY_INTERFACE_MODE_MII;
 	} else if (val == bitval[P_RMII_SEL]) {
-		interface = PHY_INTERFACE_MODE_RGMII;
+		interface = PHY_INTERFACE_MODE_RMII;
 	} else {
 		interface = PHY_INTERFACE_MODE_RGMII;
 		if (data8 & P_RGMII_ID_EG_ENABLE)
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to bpf/bpf.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to bpf/bpf.git (master)
by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Thu, 30 May 2024 18:38:31 -0700 you wrote:

From: Tristram Ha <[email protected]>

The driver should return RMII interface when XMII is running in RMII mode.

Fixes 0ab7f6bf1675 ("net: dsa: microchip: ksz9477: use common xmii function")

[...]

Here is the summary with links:
- [v1,net] net: dsa: microchip: fix RGMII error in KSZ DSA driver

    https://git.kernel.org/bpf/bpf/c/278d65ccdadb

You are awesome, thank you!

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