From: Fugang Duan Date: Thu, 29 Nov 2012 08:55:12 +0000 (+0000) Subject: ENGR00235626 FEC: Enable phy pause frame feature X-Git-Tag: v3.0.35-fsl~205 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=17d6cc8f4cece1f42257cc36f32a2c4f74bc8f4e;p=karo-tx-linux.git 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 --- 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;