]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Jun 2017 11:02:55 +0000 (13:02 +0200)
commit958c8a07d59e196b577d7b81817f5fc9f17edf19
treecf3159e722ba1030a14254edc286f0e8d40dcfb4
parentdc95f4a320f05539ef5fb5ba9b7a4bd349c866ab
net: phy: fix marvell phy status reading

commit 898805e0cdf7fd860ec21bf661d3a0285a3defbd upstream.

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: be937f1f89ca ("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>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/marvell.c