smc91x: let smc91x work well under netpoll
authorDongdong Deng <dongdong.deng@windriver.com>
Mon, 24 Aug 2009 05:59:04 +0000 (22:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2009 05:59:04 +0000 (22:59 -0700)
commit8ff499e43c537648399fca8ba39d24c0768b3fab
treea8060b64ffd9489b6509d2fe96c902b296877c45
parentd2f3ad4cedc00c8ee848e7abe9b2bbc93b9a8c2d
smc91x: let smc91x work well under netpoll

The NETPOLL requires that interrupts remain disabled in its callbacks.

Using *_irq_save()/irq_restore() to replace *_irq_disable()/irq_enable()
functions in NETPOLL's callbacks of smc91x, so that it doesn't enable
interrupts when already disabled, and kgdboe/netconsole would work
properly over smc91x.

Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smc91x.c