aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macsec.c
diff options
context:
space:
mode:
authorZefir Kurtisi <zefir.kurtisi@neratec.com>2016-10-24 12:40:54 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-27 16:05:17 -0400
commitf62265b53ef34a372b657c99e23d32e95b464316 (patch)
treec84f02849929f6a6ef4e9c58747fd7793226487b /drivers/net/macsec.c
parentRevert "at803x: fix suspend/resume for SGMII link" (diff)
downloadlinux-dev-f62265b53ef34a372b657c99e23d32e95b464316.tar.xz
linux-dev-f62265b53ef34a372b657c99e23d32e95b464316.zip
at803x: double check SGMII side autoneg
In SGMII mode, we observed an autonegotiation issue after power-down-up cycles where the copper side reports successful link establishment but the SGMII side's link is down. This happened in a setup where the at8031 is connected over SGMII to a eTSEC (fsl gianfar), but so far could not be reproduced with other Ethernet device / driver combinations. This commit adds a wrapper function for at8031 that in case of operating in SGMII mode double checks SGMII link state when generic aneg_done() succeeds. It prints a warning on failure but intentionally does not try to recover from this state. As a result, if you ever see a warning '803x_aneg_done: SGMII link is not ok' you will end up having an Ethernet link up but won't get any data through. This should not happen, if it does, please contact the module maintainer. Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions