diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-01-23 07:31:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-24 22:15:15 -0800 |
commit | 434a4315b9617bf1742bc64712bf44a208502f7f (patch) | |
tree | e9db332e38b6e90f441d4763b7e33ad83986486f /include/linux | |
parent | 9e573cfc35c6ffac45e385ed4f14f5187c09090a (diff) | |
download | linux-stable-434a4315b9617bf1742bc64712bf44a208502f7f.tar.gz linux-stable-434a4315b9617bf1742bc64712bf44a208502f7f.tar.bz2 linux-stable-434a4315b9617bf1742bc64712bf44a208502f7f.zip |
net: phy: change phy_start_interrupts to phy_request_interrupt
Now that we enable the interrupts in phy_start() we don't have to do it
before. Therefore remove enabling interrupts from phy_start_interrupts()
and rename this function to reflect the changed functionality.
v2:
- improve warning to clearly state that we fall back to polling
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/phy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 1f3873a2ff29..70f83d0d7469 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1047,7 +1047,7 @@ void phy_ethtool_ksettings_get(struct phy_device *phydev, int phy_ethtool_ksettings_set(struct phy_device *phydev, const struct ethtool_link_ksettings *cmd); int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd); -int phy_start_interrupts(struct phy_device *phydev); +void phy_request_interrupt(struct phy_device *phydev); void phy_print_status(struct phy_device *phydev); int phy_set_max_speed(struct phy_device *phydev, u32 max_speed); void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode); |