Skip to content

Commit a229846

Browse files
grygoriySgregkh
authored andcommitted
net: ethernet: ti: cpsw: fix extra rx interrupt
[ Upstream commit 51302f7 ] Now RX interrupt is triggered twice every time, because in cpsw_rx_interrupt() it is asked first and then disabled. So there will be pending interrupt always, when RX interrupt is enabled again in NAPI handler. Fix it by first disabling IRQ and then do ask. Fixes: 870915f ("drivers: net: cpsw: remove disable_irq/enable_irq as irq can be masked from cpsw itself") Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 85578e6 commit a229846

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/ti/cpsw.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,8 @@ static irqreturn_t cpsw_rx_interrupt(int irq, void *dev_id)
890890
{
891891
struct cpsw_common *cpsw = dev_id;
892892

893-
cpdma_ctlr_eoi(cpsw->dma, CPDMA_EOI_RX);
894893
writel(0, &cpsw->wr_regs->rx_en);
894+
cpdma_ctlr_eoi(cpsw->dma, CPDMA_EOI_RX);
895895

896896
if (cpsw->quirk_irq) {
897897
disable_irq_nosync(cpsw->irqs_table[0]);

0 commit comments

Comments
 (0)