]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "net: mediatek: remove set but not used variable 'status'"
authorDavid S. Miller <davem@davemloft.net>
Mon, 26 Aug 2019 02:07:04 +0000 (19:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Aug 2019 02:07:04 +0000 (19:07 -0700)
This reverts commit 5b5e0d8ca644c0d749fe799aa3ae24e8a9ff9ef7.

Actually it is not clear whether this register read is not
needed for it's HW side effects or not.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c

index bb7d623c604428fca082f8e717c6cf7bb6ec50a4..8ddbb8dcf0323984edad687346cda1d67ac5b967 100644 (file)
@@ -1948,7 +1948,9 @@ static irqreturn_t mtk_handle_irq_tx(int irq, void *_eth)
 static irqreturn_t mtk_handle_irq(int irq, void *_eth)
 {
        struct mtk_eth *eth = _eth;
+       u32 status;
 
+       status = mtk_r32(eth, MTK_PDMA_INT_STATUS);
        if (mtk_r32(eth, MTK_PDMA_INT_MASK) & MTK_RX_DONE_INT) {
                if (mtk_r32(eth, MTK_PDMA_INT_STATUS) & MTK_RX_DONE_INT)
                        mtk_handle_irq_rx(irq, _eth);