aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-09-29 23:04:12 +0200
committerDavid S. Miller <davem@davemloft.net>2018-10-01 22:55:36 -0700
commitedc7ccbbcf32b97c7d26cd556f364eb4f22c4285 (patch)
tree609b07d3974ae9fd89fd660e79461eabae20e0b0 /drivers/net/ethernet/amd
parentnet: phy: Add phydev_info() (diff)
downloadlinux-dev-edc7ccbbcf32b97c7d26cd556f364eb4f22c4285.tar.xz
linux-dev-edc7ccbbcf32b97c7d26cd556f364eb4f22c4285.zip
net: phy: Add helper to convert MII ADV register to a linkmode
The phy_mii_ioctl can be used to write a value into the MII_ADVERTISE register in the PHY. Since this changes the state of the PHY, we need to make the same change to phydev->advertising. Add a helper which can convert the register value to a linkmode. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd')
0 files changed, 0 insertions, 0 deletions