diff options
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c index be3c91c7f211..5484fd726d5a 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | |||
@@ -305,8 +305,12 @@ static int dwmac1000_irq_status(struct mac_device_info *hw, | |||
305 | { | 305 | { |
306 | void __iomem *ioaddr = hw->pcsr; | 306 | void __iomem *ioaddr = hw->pcsr; |
307 | u32 intr_status = readl(ioaddr + GMAC_INT_STATUS); | 307 | u32 intr_status = readl(ioaddr + GMAC_INT_STATUS); |
308 | u32 intr_mask = readl(ioaddr + GMAC_INT_MASK); | ||
308 | int ret = 0; | 309 | int ret = 0; |
309 | 310 | ||
311 | /* Discard masked bits */ | ||
312 | intr_status &= ~intr_mask; | ||
313 | |||
310 | /* Not used events (e.g. MMC interrupts) are not handled. */ | 314 | /* Not used events (e.g. MMC interrupts) are not handled. */ |
311 | if ((intr_status & GMAC_INT_STATUS_MMCTIS)) | 315 | if ((intr_status & GMAC_INT_STATUS_MMCTIS)) |
312 | x->mmc_tx_irq_n++; | 316 | x->mmc_tx_irq_n++; |