diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-12-20 18:45:10 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-26 12:26:43 -0500 |
commit | c1a8d0a3accf64a014d605e6806ce05d1c17adf1 (patch) | |
tree | 85dc6fc5ae2f6d481656168be288a4798aba4d4a /net/sysctl_net.c | |
parent | e5a9336adb317db55eb3fe8200856096f3c71109 (diff) |
net: phy: micrel: ksz9031: reconfigure autoneg after phy autoneg workaround
Under some circumstances driver will perform PHY reset in
ksz9031_read_status() to fix autoneg failure case (idle error count =
0xFF). When this happens ksz9031 will not detect link status change any
more when connecting to Netgear 1G switch (link can be recovered sometimes by
restarting netdevice "ifconfig down up"). Reproduced with TI am572x board
equipped with ksz9031 PHY while connecting to Netgear 1G switch.
Fix the issue by reconfiguring autonegotiation after PHY reset in
ksz9031_read_status().
Fixes: d2fd719bcb0e ("net/phy: micrel: Add workaround for bad autoneg")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sysctl_net.c')
0 files changed, 0 insertions, 0 deletions