]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: clear receive interrupts before processing a packet
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Sep 2015 09:24:14 +0000 (17:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2015 23:06:04 +0000 (16:06 -0700)
commit70c316a5ef51535e778e303e8da7930e4ad3b7e9
tree8a2c40da6ea2b2ed860c78675eb024c8ca9ad938
parentb2abedaebc73e8155c01eb80c27cfb3a16f169a3
net: fec: clear receive interrupts before processing a packet

The patch just to re-submit the patch "c7cae27f321591f61" because the
patch "d03b455b39650940" remove the change.

Clear any pending receive interrupt before we process a pending packet.
This helps to avoid any spurious interrupts being raised after we have
fully cleaned the receive ring, while still allowing an interrupt to be
raised if we receive another packet.

The position of this is critical: we must do this prior to reading the
next packet status to avoid potentially dropping an interrupt when a
packet is still pending.

Acked-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c