fec: don't enable irqs in hard irq context
commit81538e74ca12a71ea37ce72f809ebc65a90b9538
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 1 Sep 2009 23:14:16 +0000 (1 23:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Sep 2009 06:46:06 +0000 (2 23:46 -0700)
tree5c390159ef7d0605f6b8e65fa0b77661af77ede1
parent84177a20799072c65a69b62571660d4d9780823c
fec: don't enable irqs in hard irq context

fec_enet_mii, fec_enet_rx and fec_enet_tx are both only called by
fec_enet_interrupt in interrupt context.  So they must not use
spin_lock_irq/spin_unlock_irq.

This fixes:
WARNING: at kernel/lockdep.c:2140 trace_hardirqs_on_caller+0x130/0x194()
...

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Matt Waddel <Matt.Waddel@freescale.com>
Cc: netdev@vger.kernel.org
Cc: Tim Sander <tim01@vlsi.informatik.tu-darmstadt.de>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fec.c