]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: fix marvell phy status reading
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 30 May 2017 15:21:51 +0000 (16:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 17:52:16 +0000 (13:52 -0400)
commit842d97bfa843aecee1bffcc93d9802a68e439e49
treee9624ac2fb94db32d7a1dfdc70fcb5ef90190242
parent5cdf0b9f85b7b14e79cbdfb72e934b78d383d50d
net: phy: fix marvell phy status reading

The Marvell driver incorrectly provides phydev->lp_advertising as the
logical and of the link partner's advert and our advert.  This is
incorrect - this field is supposed to store the link parter's unmodified
advertisment.

This allows ethtool to report the correct link partner auto-negotiation
status.

Fixes: dbbaad17ae13 ("Marvell PHY m88e1111 driver fix")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c