]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: bcmgenet: clear status to reduce spurious interrupts
authorDoug Berger <opendmb@gmail.com>
Tue, 14 Mar 2017 00:41:37 +0000 (17:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 04:51:50 +0000 (21:51 -0700)
commitd5810ca3252a5bf61e5b2fc789da456e0f65ba8c
tree38ae9f7083a187224cf23a081936a9b01745307c
parentb1ec494deea8322e88063c8a6bee903255a0590d
net: bcmgenet: clear status to reduce spurious interrupts

Since the DMA interrupt status is latched and the DMA servicing can be
polled, it is a good idea to clear the latched status of a DMA interrupt
before performing the service that would be invoked by the interrupt.

This prevents old status from causing spurious interrupts when the
interrupt is unmasked at a later time.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c