Commit c4474fe1 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

net: phy: mscc: consider interrupt source in interrupt handler

Trigger the respective interrupt handler functionality only if the
related interrupt source bit is set.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9010f9de
......@@ -1437,7 +1437,10 @@ static irqreturn_t vsc8584_handle_interrupt(struct phy_device *phydev)
if (irq_status < 0 || !(irq_status & MII_VSC85XX_INT_MASK_MASK))
return IRQ_NONE;
if (irq_status & MII_VSC85XX_INT_MASK_EXT)
vsc8584_handle_macsec_interrupt(phydev);
if (irq_status & MII_VSC85XX_INT_MASK_LINK_CHG)
phy_mac_interrupt(phydev);
return IRQ_HANDLED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment