sky2: fix hang on shutdown (and other irq issues)
authorstephen hemminger <shemminger@vyatta.com>
Wed, 16 Nov 2011 13:42:55 +0000 (13:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2011 01:27:08 +0000 (20:27 -0500)
commit1401a8008a09e079236261be37e98847c799760a
tree5ab8aadb5add5b196b46ee075979d68eab9c42fe
parentbbc13ab9d26f4ff675775dd7dc24d5cae17b85d5
sky2: fix hang on shutdown (and other irq issues)

There are several problems with recent change to how IRQ's are setup.
   * synchronize_irq in sky2_shutdown would hang because there
     was no IRQ setup.
   * when device was set to down, some IRQ bits left enabled so a
     hardware error would produce IRQ with no handler
   * quick link on Optima chip set was enabled without handler
   * suspend/resume would leave IRQ on with no handler if device
     was down

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/sky2.c