Skip to content

Commit 0fe1568

Browse files
madalinbucurdavem330
authored andcommitted
net: fsl/fman: treat all RGMII modes in memac_adjust_link()
Treat all internal delay variants the same as RGMII. Signed-off-by: Madalin Bucur <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 23c3948 commit 0fe1568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/fman/fman_memac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ int memac_adjust_link(struct fman_mac *memac, u16 speed)
782782
/* Set full duplex */
783783
tmp &= ~IF_MODE_HD;
784784

785-
if (memac->phy_if == PHY_INTERFACE_MODE_RGMII) {
785+
if (phy_interface_mode_is_rgmii(memac->phy_if)) {
786786
/* Configure RGMII in manual mode */
787787
tmp &= ~IF_MODE_RGMII_AUTO;
788788
tmp &= ~IF_MODE_RGMII_SP_MASK;

0 commit comments

Comments
 (0)