net: mii: Report advertised link capabilities when autonegotiation is off
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 27 Oct 2020 11:43:17 +0000 (12:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 02:00:46 +0000 (19:00 -0700)
commit8027c85c91b84bbbdcf3e28f8b9f35af1032787c
treea829c7b3c15061d6b429544ad99419cdf2e2c1c1
parent6e2b243db4dc8c0fd51570244b6fd7810e16261a
net: mii: Report advertised link capabilities when autonegotiation is off

Unify the set of information returned by mii_ethtool_get_link_ksettings(),
mii_ethtool_gset() and phy_ethtool_ksettings_get(). Make the mii_*()
functions report advertised settings when autonegotiation if disabled.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201027114317.8259-1-l.stelmach@samsung.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mii.c