aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 96fbf86366a9..ca3e95a4b16f 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -1780,30 +1780,14 @@ static irqreturn_t stmmac_interrupt(int irq, void *dev_id)
1780 /* To handle GMAC own interrupts */ 1780 /* To handle GMAC own interrupts */
1781 if (priv->plat->has_gmac) { 1781 if (priv->plat->has_gmac) {
1782 int status = priv->hw->mac->host_irq_status((void __iomem *) 1782 int status = priv->hw->mac->host_irq_status((void __iomem *)
1783 dev->base_addr); 1783 dev->base_addr,
1784 &priv->xstats);
1784 if (unlikely(status)) { 1785 if (unlikely(status)) {
1785 if (status & core_mmc_tx_irq)
1786 priv->xstats.mmc_tx_irq_n++;
1787 if (status & core_mmc_rx_irq)
1788 priv->xstats.mmc_rx_irq_n++;
1789 if (status & core_mmc_rx_csum_offload_irq)
1790 priv->xstats.mmc_rx_csum_offload_irq_n++;
1791 if (status & core_irq_receive_pmt_irq)
1792 priv->xstats.irq_receive_pmt_irq_n++;
1793
1794 /* For LPI we need to save the tx status */ 1786 /* For LPI we need to save the tx status */
1795 if (status & core_irq_tx_path_in_lpi_mode) { 1787 if (status & CORE_IRQ_TX_PATH_IN_LPI_MODE)
1796 priv->xstats.irq_tx_path_in_lpi_mode_n++;
1797 priv->tx_path_in_lpi_mode = true; 1788 priv->tx_path_in_lpi_mode = true;
1798 } 1789 if (status & CORE_IRQ_TX_PATH_EXIT_LPI_MODE)
1799 if (status & core_irq_tx_path_exit_lpi_mode) {
1800 priv->xstats.irq_tx_path_exit_lpi_mode_n++;
1801 priv->tx_path_in_lpi_mode = false; 1790 priv->tx_path_in_lpi_mode = false;
1802 }
1803 if (status & core_irq_rx_path_in_lpi_mode)
1804 priv->xstats.irq_rx_path_in_lpi_mode_n++;
1805 if (status & core_irq_rx_path_exit_lpi_mode)
1806 priv->xstats.irq_rx_path_exit_lpi_mode_n++;
1807 } 1791 }
1808 } 1792 }
1809 1793