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 /drivers/net/phy/phy_device.c | |
parent | net: phy: start interrupts in phy_start (diff) | |
download | linux-dev-434a4315b9617bf1742bc64712bf44a208502f7f.tar.xz linux-dev-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 'drivers/net/phy/phy_device.c')
-rw-r--r-- | drivers/net/phy/phy_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 64c25a0684ac..891e0178b97f 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -951,8 +951,8 @@ int phy_connect_direct(struct net_device *dev, struct phy_device *phydev, return rc; phy_prepare_link(phydev, handler); - if (phydev->irq > 0) - phy_start_interrupts(phydev); + if (phy_interrupt_is_valid(phydev)) + phy_request_interrupt(phydev); return 0; } |