]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: phy: Use 'autoneg' flag from phydev
authorAlexandre Messier <amessier@tycoint.com>
Fri, 22 Jan 2016 19:16:56 +0000 (14:16 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 28 Jan 2016 19:20:29 +0000 (13:20 -0600)
commit1f9e672c792404744006658047c5866c74bc1ab1
tree66be49d1ea869db7522f09cbe2e72dad232d0295
parent53b0c38c7a691d13d53c08e4c4ebbfd2612f20a7
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>
drivers/net/phy/phy.c