]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: cpsw: irq not disabled in cpsw isr in particular sequence
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 2 May 2013 01:52:11 +0000 (01:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 May 2013 20:52:04 +0000 (16:52 -0400)
commit4408518237f95cf3f46aedeb4a554729dfc29f5a
tree1c7a55c1c4f52644467bd29f57b0079d5e021434
parent573d4d8e19a4a6e0943f874746cf7472a0223b27
drivers: net: cpsw: irq not disabled in cpsw isr in particular sequence

In CPSW NAPI, after processing all interrupts IRQ is enabled and then book
keeping irq_enabled is updated. In random cases when a packet is transmitted
or received between processing packets and IRQ enabled, then just after
enabled IRQ and before irq_enabled is updated, ISR is called so IRQs are
not disabled as irq_enabled is still false and CPU gets locked in CPSW ISR.

By changing the sequence as update the irq_enabled and then enable IRQ
fixes the issue. This issue is not captured always as it is a timing issue
whether Tx or Rx IRQ is invoked between packet processing and enable IRQ.

Cc: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c