diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2013-12-06 16:01:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-09 20:38:58 -0500 |
commit | 114002bc1af6c63de4c003f8c5d3ca0bb430d987 (patch) | |
tree | 1bd189225054a8313dac7025d41c194887f72248 /include/linux/phy.h | |
parent | 73713357ab58aacda1af715bb5a623528dbbfd79 (diff) |
net: phy: report link partner features through ethtool
The PHY library already reads the MII_STAT1000 and MII_LPA registers in
genphy_read_status(), so extend it to also populate the PHY device link
partner advertised features such that we can feed this back into ethtool
when asked for it in phy_ethtool_gset().
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 7ff751ae6f0a..90a666e0884b 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
@@ -287,8 +287,8 @@ struct phy_c45_device_ids { | |||
287 | * adjust_state: Callback for the enet driver to respond to | 287 | * adjust_state: Callback for the enet driver to respond to |
288 | * changes in the state machine. | 288 | * changes in the state machine. |
289 | * | 289 | * |
290 | * speed, duplex, pause, supported, advertising, and | 290 | * speed, duplex, pause, supported, advertising, lp_advertising, |
291 | * autoneg are used like in mii_if_info | 291 | * and autoneg are used like in mii_if_info |
292 | * | 292 | * |
293 | * interrupts currently only supports enabled or disabled, | 293 | * interrupts currently only supports enabled or disabled, |
294 | * but could be changed in the future to support enabling | 294 | * but could be changed in the future to support enabling |
@@ -340,6 +340,7 @@ struct phy_device { | |||
340 | /* See mii.h for more info */ | 340 | /* See mii.h for more info */ |
341 | u32 supported; | 341 | u32 supported; |
342 | u32 advertising; | 342 | u32 advertising; |
343 | u32 lp_advertising; | ||
343 | 344 | ||
344 | int autoneg; | 345 | int autoneg; |
345 | 346 | ||