diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-24 11:06:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-25 13:01:39 -0700 |
commit | c6d5d843d9b6e8dca3768250970f0d0a1e3d4fb0 (patch) | |
tree | eda9ba9d6b9f6d018b4e04e632745349a95d7d73 /include/linux/phylink.h | |
parent | 4b88b9ce722f19f8743de531cb3c510f36c6f970 (diff) | |
download | lwn-c6d5d843d9b6e8dca3768250970f0d0a1e3d4fb0.tar.gz lwn-c6d5d843d9b6e8dca3768250970f0d0a1e3d4fb0.zip |
net: phylink: add phylink_speed_(up|down) interface
Add an interface for the phy_speed_(up|down) functions when a driver
makes use of phylink. These pass the call through to phylib when we
have a normal PHY attached (i.o.w., not a PHY on a SFP module.)
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phylink.h')
-rw-r--r-- | include/linux/phylink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index cc5b452a184e..b32b8b45421b 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -392,6 +392,8 @@ int phylink_init_eee(struct phylink *, bool); int phylink_ethtool_get_eee(struct phylink *, struct ethtool_eee *); int phylink_ethtool_set_eee(struct phylink *, struct ethtool_eee *); int phylink_mii_ioctl(struct phylink *, struct ifreq *, int); +int phylink_speed_down(struct phylink *pl, bool sync); +int phylink_speed_up(struct phylink *pl); #define phylink_zero(bm) \ bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS) |