commit | 010c5ec42e2c651278ea41edb9b615b8267fbd79 | [log] [tgz] |
---|---|---|
author | Alexandre Messier <amessier@tycoint.com> | Fri Jan 22 14:16:56 2016 -0500 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Thu Jan 28 13:20:29 2016 -0600 |
tree | 66be49d1ea869db7522f09cbe2e72dad232d0295 | |
parent | 103a8c40b0f663aa11a3e259627feb177840133d [diff] |
net: phy: Use 'autoneg' flag from phydev Use the 'autoneg' flag available in phydev when checking if autoneg is in use. The previous implementation was checking directly in the PHY if autoneg was supported. Some PHYs will report that autoneg is supported, even when it is disabled. Thus it is not possible to use that bit to determine if autoneg is currently in use or not. Signed-off-by: Alexandre Messier <amessier@tycoint.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>