提交 0fe15680 编写于 作者: M Madalin Bucur 提交者: David S. Miller

net: fsl/fman: treat all RGMII modes in memac_adjust_link()

Treat all internal delay variants the same as RGMII.
Signed-off-by: NMadalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 23c39481
...@@ -782,7 +782,7 @@ int memac_adjust_link(struct fman_mac *memac, u16 speed) ...@@ -782,7 +782,7 @@ int memac_adjust_link(struct fman_mac *memac, u16 speed)
/* Set full duplex */ /* Set full duplex */
tmp &= ~IF_MODE_HD; 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 */ /* Configure RGMII in manual mode */
tmp &= ~IF_MODE_RGMII_AUTO; tmp &= ~IF_MODE_RGMII_AUTO;
tmp &= ~IF_MODE_RGMII_SP_MASK; tmp &= ~IF_MODE_RGMII_SP_MASK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册