summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFugang Duan <b38611@freescale.com>2012-11-29 08:55:12 +0000
committerFugang Duan <B38611@freescale.com>2012-12-05 18:34:50 +0800
commit9c3a6fd1e3778b9605cc275d45b6c141fd0741ae (patch)
tree74b9d62c2a638df51321aee7ba32469b95525bd1
parent9b600b5d80f6adca4e783f4a0a75ae717f5536ed (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-xdrivers/net/fec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index 4193ac75b364..fd737653bde1 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;