]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: cpsw: enable interrupts after napi enable and clearing previous interrupts
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 10 Apr 2014 08:53:24 +0000 (14:23 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Apr 2014 20:27:41 +0000 (16:27 -0400)
commitc409b41b39ddd1ab4b05043af88ee1111dac9cc0
tree03aa9f5740a33f39d7ccd643048e63e94097b73b
parentc0f73e528da206cb40ceb282f7d6b9778767cdea
drivers: net: cpsw: enable interrupts after napi enable and clearing previous interrupts

When the Ethernet interface is put down and up with heavy Ethernet
traffic, then there is prossibility of an interrupt waiting in irq
controller to be processed, so when the interface is brought up again
just after enable interrupt, it goes to ISR due to the previous
unhandled interrutp and in ISR napi is not scheduled as the napi
is not enabled in ndo_open which results in disabled interrupt for
CPSW and no packets are received in cpsw. So this patch moves enabling
of interupts after napi_enable and clearing CPDMA interrupts.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c