]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] xirc2ps_cs: Cannot reset card in atomic context
authorJoerg Ahrens <joerg@hydrops.han.de>
Sun, 20 Aug 2006 20:51:57 +0000 (21:51 +0100)
committerJeff Garzik <jeff@garzik.org>
Thu, 24 Aug 2006 04:38:32 +0000 (00:38 -0400)
commit9a469abe9c6bab3ce237ee433541931bbd827faf
treeb1f3634a602b612fbbf62254f80c7c2c72a4540f
parentcb958186ed543d1a4f074ceb1c783fe8b0908437
[PATCH] xirc2ps_cs: Cannot reset card in atomic context

I am using a Xircom CEM33 pcmcia NIC which has occasional hardware problems.
If the netdev watchdog detects a transmit timeout, do_reset is called which
msleeps - this is illegal in atomic context.

This patch schedules the timeout handling as a workqueue item.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pcmcia/xirc2ps_cs.c