forked from Minki/linux
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 <madalin.bucur@oss.nxp.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
23c394819d
commit
0fe1568061
@ -782,7 +782,7 @@ int memac_adjust_link(struct fman_mac *memac, u16 speed)
|
||||
/* Set full duplex */
|
||||
tmp &= ~IF_MODE_HD;
|
||||
|
||||
if (memac->phy_if == PHY_INTERFACE_MODE_RGMII) {
|
||||
if (phy_interface_mode_is_rgmii(memac->phy_if)) {
|
||||
/* Configure RGMII in manual mode */
|
||||
tmp &= ~IF_MODE_RGMII_AUTO;
|
||||
tmp &= ~IF_MODE_RGMII_SP_MASK;
|
||||
|
Loading…
Reference in New Issue
Block a user