b44: fix resume, request_irq after hw reset
authorJames Hogan <james@albanarts.com>
Sun, 17 Oct 2010 01:48:59 +0000 (01:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2010 11:25:50 +0000 (04:25 -0700)
commitafed4ccb0d975f1d3c98880ecf19a24f3d842394
tree833c9663cc409846f17d180efa88c4098d474651
parent31b9c19bfe32bed7fdf80cd0b1aa9d0f0569844a
b44: fix resume, request_irq after hw reset

On resume, call request_irq() after resetting the hardware rather than
before. It's a shared interrupt so the handler could be called
immediately if another device on the same irq interrupts (and will be
called immediately if CONFIG_DEBUG_SHIRQ=y), but unless the hardware is
reinitialised with b44_init_hw() the read of the interrupt status
register will hang the system.

Signed-off-by: James Hogan <james@albanarts.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/b44.c