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: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9010f9deb0
commit
c4474fe121
|
@ -1437,8 +1437,11 @@ static irqreturn_t vsc8584_handle_interrupt(struct phy_device *phydev)
|
|||
if (irq_status < 0 || !(irq_status & MII_VSC85XX_INT_MASK_MASK))
|
||||
return IRQ_NONE;
|
||||
|
||||
vsc8584_handle_macsec_interrupt(phydev);
|
||||
phy_mac_interrupt(phydev);
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue