Skip to content

Commit 278d65c

Browse files
triha2workkuba-moo
authored andcommitted
net: dsa: microchip: fix RGMII error in KSZ DSA driver
The driver should return RMII interface when XMII is running in RMII mode. Fixes: 0ab7f6b ("net: dsa: microchip: ksz9477: use common xmii function") Signed-off-by: Tristram Ha <tristram.ha@microchip.com> Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com> Acked-by: Jerry Ray <jerry.ray@microchip.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/1716932066-3342-1-git-send-email-Tristram.Ha@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent b8c8abe commit 278d65c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/dsa/microchip/ksz_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3142,7 +3142,7 @@ phy_interface_t ksz_get_xmii(struct ksz_device *dev, int port, bool gbit)
31423142
else
31433143
interface = PHY_INTERFACE_MODE_MII;
31443144
} else if (val == bitval[P_RMII_SEL]) {
3145-
interface = PHY_INTERFACE_MODE_RGMII;
3145+
interface = PHY_INTERFACE_MODE_RMII;
31463146
} else {
31473147
interface = PHY_INTERFACE_MODE_RGMII;
31483148
if (data8 & P_RGMII_ID_EG_ENABLE)

0 commit comments

Comments
 (0)