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 <[email protected]> Acked-by: Arun Ramadoss <[email protected]> Acked-by: Jerry Ray <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b8c8abe commit 278d65c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)