jme: fix irq storm after suspend/resume
commita7d5b76d9a7e434e32a5b2815db45489617dcba6
authorClemens Buchacher <drizzd@aon.at>
Sat, 22 Oct 2011 02:56:20 +0000 (22 02:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2011 06:58:09 +0000 (24 02:58 -0400)
tree0613e55954020f70fd21d9da6bce4bc74dd46489
parent7cc9150ebe8ec06cafea9f1c10d92ddacf88d8ae
jme: fix irq storm after suspend/resume

If the device is down during suspend/resume, interrupts are enabled
without a registered interrupt handler, causing a storm of
unhandled interrupts until the IRQ is disabled because "nobody
cared".

Instead, check that the device is up before touching it in the
suspend/resume code.

Fixes https://bugzilla.kernel.org/show_bug.cgi?id=39112

Helped-by: Adrian Chadd <adrian@freebsd.org>
Helped-by: Mohammed Shafi <shafi.wireless@gmail.com>
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c