phy: marvell: add link partner advertised modes
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Sep 2015 23:07:17 +0000 (00:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 19:23:47 +0000 (12:23 -0700)
commit357cd64c18404309aabefb82019b12773de31a12
tree54df6b088525148348d0601dd7a8bf68753234a6
parentb626ef0128d254d33ee43c51d68f577bbec370ac
phy: marvell: add link partner advertised modes

Read the standard link partner advertisment registers and store it in
phydev->lp_advertising, so ethtool can report this information to
userspace via ethtool.  Zero it as per genphy if autonegotiation is
disabled.  Tested with a Marvell 88E1512 PHY.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c