Sebastian Siewior ab9399059b net: don't grab a mutex within a timer context in gianfar
I got the following backtrace while network was unavailble:

|NETDEV WATCHDOG: eth0: transmit timed out
|BUG: sleeping function called from invalid context at /home/bigeasy/git/linux-2.6-powerpc/kernel/mutex.c:87
|in_atomic():1, irqs_disabled():0
|Call Trace:
|[c0383d90] [c0006dd8] show_stack+0x48/0x184 (unreliable)
|[c0383db0] [c001e938] __might_sleep+0xe0/0xf4
|[c0383dc0] [c025a43c] mutex_lock+0x24/0x3c
|[c0383de0] [c019005c] phy_stop+0x20/0x70
|[c0383df0] [c018d4ec] stop_gfar+0x28/0xf4
|[c0383e10] [c018e8c4] gfar_timeout+0x30/0x60
|[c0383e20] [c01fe7c0] dev_watchdog+0xa8/0x144
|[c0383e30] [c002f93c] run_timer_softirq+0x148/0x1c8
|[c0383e60] [c002b084] __do_softirq+0x5c/0xc4
|[c0383e80] [c00046fc] do_softirq+0x3c/0x54
|[c0383e90] [c002ac60] irq_exit+0x3c/0x5c
|[c0383ea0] [c000b378] timer_interrupt+0xe0/0xf8
|[c0383ec0] [c000e5ac] ret_from_except+0x0/0x18
|[c0383f80] [c000804c] cpu_idle+0xcc/0xdc
|[c0383fa0] [c025c07c] etext+0x7c/0x90
|[c0383fc0] [c0338960] start_kernel+0x294/0x2a8
|[c0383ff0] [c00003dc] skpinv+0x304/0x340
|------------[ cut here ]------------

The phylock was once a spinlock but got changed into a mutex via
commit 35b5f6b1a aka [PHYLIB: Locking fixes for PHY I/O potentially sleeping]

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-08-27 05:55:19 -04:00
..
2008-08-27 05:36:27 -04:00
2008-07-29 17:48:42 -04:00
2008-07-22 19:39:14 -04:00
2008-08-27 05:36:12 -04:00
2008-08-27 05:14:32 -04:00
2008-08-14 04:43:32 -04:00
2008-08-27 05:54:57 -04:00
2008-08-07 02:22:15 -04:00
2008-03-17 08:11:03 -04:00
2008-01-28 15:04:05 -08:00
2008-06-10 18:20:17 -04:00
2008-08-14 04:26:38 -04:00
2007-10-10 16:51:43 -07:00
2008-07-29 18:24:14 -04:00
2008-04-29 01:56:14 -04:00
2008-07-18 17:54:17 -07:00
2008-05-16 22:20:27 -07:00
2008-07-18 17:55:11 -07:00
2008-08-13 16:05:38 -07:00
2008-08-13 16:05:37 -07:00
2008-08-13 16:05:38 -07:00
2008-08-13 16:05:37 -07:00
2008-08-25 15:30:39 -07:00
2008-08-13 16:05:37 -07:00
2008-08-25 15:19:17 -07:00
2008-07-26 12:00:06 -07:00
2008-01-04 00:47:04 -08:00
2008-08-14 04:26:38 -04:00
2008-03-26 00:18:43 -04:00
2008-02-01 20:54:03 +11:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:13 -07:00
2008-01-28 15:07:59 -08:00
2008-08-27 05:55:04 -04:00
2008-05-22 14:12:40 -04:00
2008-01-28 15:07:12 -08:00
2008-07-22 17:50:44 -04:00
2008-07-22 17:50:44 -04:00
2008-02-03 04:26:12 -08:00
2008-08-27 05:36:57 -04:00
2008-07-25 15:44:44 +10:00
2008-03-17 08:11:41 -04:00
2008-08-14 04:26:38 -04:00
2008-04-25 02:08:51 -04:00
2008-06-11 22:06:31 -04:00
2008-01-28 15:07:12 -08:00
2008-08-07 02:11:19 -04:00
2007-10-19 11:53:42 -07:00
2008-02-03 04:28:10 -08:00
2008-08-24 07:36:39 +02:00
2008-07-22 17:50:44 -04:00
2008-03-17 07:56:33 -04:00
2008-08-14 04:44:11 -04:00
2008-03-26 00:18:00 -04:00
2008-05-30 22:19:22 -04:00
2008-03-05 16:34:41 -06:00
2008-07-20 17:12:34 -07:00
2008-01-28 15:11:27 -08:00
2008-07-26 20:53:40 -04:00
2008-07-20 17:12:34 -07:00
2008-06-20 21:58:02 -07:00
2008-08-07 02:11:15 -04:00
2008-08-14 04:26:38 -04:00
2008-01-28 15:03:59 -08:00
2008-07-11 01:11:40 -04:00
2008-04-16 20:41:44 -04:00
2008-05-30 22:07:17 -04:00
2008-08-14 04:26:38 -04:00
2008-08-07 02:20:57 -04:00
2007-10-16 21:10:29 -04:00
2008-08-07 01:55:50 -04:00
2008-01-28 15:11:27 -08:00
2008-07-20 17:12:34 -07:00
2008-01-28 15:03:59 -08:00
2007-07-16 15:02:47 +02:00
2008-04-16 20:06:50 -04:00
2008-02-03 04:26:15 -08:00
2008-01-28 15:03:46 -08:00
2008-03-23 03:35:12 -07:00
2008-01-28 15:07:10 -08:00
2008-01-28 15:07:09 -08:00
2008-02-03 04:26:14 -08:00
2007-10-10 16:51:34 -07:00
2008-08-14 04:26:38 -04:00
2008-08-15 14:11:19 -07:00
2008-08-15 14:10:04 -07:00
2008-05-30 22:18:02 -04:00