diff options
| author | Florian Fainelli <[email protected]> | 2013-12-06 21:01:30 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-12-10 01:38:58 +0000 |
| commit | 114002bc1af6c63de4c003f8c5d3ca0bb430d987 (patch) | |
| tree | 1bd189225054a8313dac7025d41c194887f72248 /drivers/net/phy/phy.c | |
| parent | tun: remove useless codes in tun_chr_aio_read() and tun_recvmsg() (diff) | |
| download | kernel-114002bc1af6c63de4c003f8c5d3ca0bb430d987.tar.gz kernel-114002bc1af6c63de4c003f8c5d3ca0bb430d987.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/phy/phy.c')
| -rw-r--r-- | drivers/net/phy/phy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 36c6994436b7..05cb8fe742f9 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -289,6 +289,7 @@ int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd) cmd->supported = phydev->supported; cmd->advertising = phydev->advertising; + cmd->lp_advertising = phydev->lp_advertising; ethtool_cmd_speed_set(cmd, phydev->speed); cmd->duplex = phydev->duplex; |
