]> git.itanic.dy.fi Git - linux-stable/commit
xirc2ps_cs: Cannot reset card in atomic context
authorJoerg Ahrens <joerg@hydrops.han.de>
Sun, 17 Sep 2006 04:01:05 +0000 (00:01 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 18:50:11 +0000 (11:50 -0700)
commit8d73f56f5f020bf99be61a6f4ba50be72c97dd0c
treef3b069a402ba1a29b5308e1d6a61e496dc7a32f1
parenta7f0f4dc1aa3b640549507ed1ebfb46ab45eebfe
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/pcmcia/xirc2ps_cs.c