]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Disable EEE autoneg by default
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Thu, 7 Dec 2017 16:44:23 +0000 (18:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Dec 2017 18:23:01 +0000 (13:23 -0500)
commit44f6f12b54c8979f0538c65949c54e8fad90b8e7
treef983f4b1b3c74546e5ec3a07829881c3e0ca28fd
parent2096391011483549b0f4203524669d3b15b9f369
gianfar: Disable EEE autoneg by default

This controller does not support EEE, but it may connect to a PHY
which supports EEE and advertises EEE by default, while its link
partner also advertises EEE. If this happens, the PHY enters low
power mode when the traffic rate is low and causes packet loss.
This patch disables EEE advertisement by default for any PHY that
gianfar connects to, to prevent the above unwanted outcome.

Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com>
Tested-by: Yangbo Lu <Yangbo.lu@nxp.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c