提交 df63022e 编写于 作者: T Timur Tabi 提交者: David S. Miller

net: qcom/emac: enable flow control if requested

If the PHY has been configured to allow pause frames, then the MAC
should be configured to generate and/or accept those frames.
Signed-off-by: NTimur Tabi <timur@codeaurora.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3e884493
...@@ -575,10 +575,11 @@ void emac_mac_start(struct emac_adapter *adpt) ...@@ -575,10 +575,11 @@ void emac_mac_start(struct emac_adapter *adpt)
mac |= TXEN | RXEN; /* enable RX/TX */ mac |= TXEN | RXEN; /* enable RX/TX */
/* We don't have ethtool support yet, so force flow-control mode /* Configure MAC flow control to match the PHY's settings. */
* to 'full' always. if (phydev->pause)
*/ mac |= RXFC;
mac |= TXFC | RXFC; if (phydev->pause != phydev->asym_pause)
mac |= TXFC;
/* setup link speed */ /* setup link speed */
mac &= ~SPEED_MASK; mac &= ~SPEED_MASK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部