diff options
author | Fugang Duan <b38611@freescale.com> | 2012-11-29 08:55:12 +0000 |
---|---|---|
committer | Fugang Duan <B38611@freescale.com> | 2012-12-05 18:31:09 +0800 |
commit | 9bddd73f50070fb55e110d24181819c2887eae5b (patch) | |
tree | afce827fa7838699c4fe9b9c4b98ad17ba89170c | |
parent | 3f671abaaa76d10155144f203619337cb19a1532 (diff) |
ENGR00235626 FEC: Enable phy pause frame feature
Since some ethernet MAC flow control is relied on phy pause
status, both link partners exchange information via auto neg to
determine if both parties are capable of flow control.
Advertise phy pause frame to avoid pause frame is not responsed
by the other net node.
Signed-off-by: Fugang Duan <B38611@freescale.com>
-rwxr-xr-x | drivers/net/fec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 6fafd9152d0b..4b5818e4d71e 100755 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1045,6 +1045,9 @@ static int fec_enet_mii_probe(struct net_device *ndev) else phy_dev->supported &= PHY_BASIC_FEATURES; + /* enable phy pause frame for any platform */ + phy_dev->supported |= ADVERTISED_Pause; + phy_dev->advertising = phy_dev->supported; fep->phy_dev = phy_dev; |