diff options
| -rw-r--r-- | drivers/net/tg3.c | 12 | 
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 630c8a6c9f73..6f849bd5a7e7 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c  | |||
| @@ -3590,8 +3590,12 @@ static irqreturn_t tg3_interrupt(int irq, void *dev_id) | |||
| 3590 | * Writing non-zero to intr-mbox-0 additional tells the | 3590 | * Writing non-zero to intr-mbox-0 additional tells the | 
| 3591 | * NIC to stop sending us irqs, engaging "in-intr-handler" | 3591 | * NIC to stop sending us irqs, engaging "in-intr-handler" | 
| 3592 | * event coalescing. | 3592 | * event coalescing. | 
| 3593 | * | ||
| 3594 | * Flush the mailbox to de-assert the IRQ immediately to prevent | ||
| 3595 | * spurious interrupts. The flush impacts performance but | ||
| 3596 | * excessive spurious interrupts can be worse in some cases. | ||
| 3593 | */ | 3597 | */ | 
| 3594 | tw32_mailbox(MAILBOX_INTERRUPT_0 + TG3_64BIT_REG_LOW, 0x00000001); | 3598 | tw32_mailbox_f(MAILBOX_INTERRUPT_0 + TG3_64BIT_REG_LOW, 0x00000001); | 
| 3595 | if (tg3_irq_sync(tp)) | 3599 | if (tg3_irq_sync(tp)) | 
| 3596 | goto out; | 3600 | goto out; | 
| 3597 | sblk->status &= ~SD_STATUS_UPDATED; | 3601 | sblk->status &= ~SD_STATUS_UPDATED; | 
| @@ -3635,8 +3639,12 @@ static irqreturn_t tg3_interrupt_tagged(int irq, void *dev_id) | |||
| 3635 | * writing non-zero to intr-mbox-0 additional tells the | 3639 | * writing non-zero to intr-mbox-0 additional tells the | 
| 3636 | * NIC to stop sending us irqs, engaging "in-intr-handler" | 3640 | * NIC to stop sending us irqs, engaging "in-intr-handler" | 
| 3637 | * event coalescing. | 3641 | * event coalescing. | 
| 3642 | * | ||
| 3643 | * Flush the mailbox to de-assert the IRQ immediately to prevent | ||
| 3644 | * spurious interrupts. The flush impacts performance but | ||
| 3645 | * excessive spurious interrupts can be worse in some cases. | ||
| 3638 | */ | 3646 | */ | 
| 3639 | tw32_mailbox(MAILBOX_INTERRUPT_0 + TG3_64BIT_REG_LOW, 0x00000001); | 3647 | tw32_mailbox_f(MAILBOX_INTERRUPT_0 + TG3_64BIT_REG_LOW, 0x00000001); | 
| 3640 | if (tg3_irq_sync(tp)) | 3648 | if (tg3_irq_sync(tp)) | 
| 3641 | goto out; | 3649 | goto out; | 
| 3642 | if (netif_rx_schedule_prep(dev)) { | 3650 | if (netif_rx_schedule_prep(dev)) { | 
