]> git.baikalelectronics.ru Git - kernel.git/commit
mv643xx_eth: prevent interrupt storm on ifconfig down
authorGabriel Paubert <paubert@iram.es>
Tue, 20 Jan 2009 01:18:09 +0000 (17:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jan 2009 01:58:07 +0000 (17:58 -0800)
commit9679ce8fa931f4dd9bab356d7cb2423666b1ed6c
treedc2cf1570a191641ec17bb537869e55c724d9702
parent152c5743ce0456ab6ed6dcc43cd9037d9f3574ab
mv643xx_eth: prevent interrupt storm on ifconfig down

Contrary to what the docs say, the 'extended interrupt cause' bit in
the interrupt cause register (bit 1) appears to not be maskable on at
least some of the mv643xx_eth platforms, making writing zeroes to the
interrupt mask register but not the extended interrupt mask register
insufficient to stop interrupts from occuring.  Therefore, also write
zeroes to the extended interrupt mask register when shutting down the
port.

This fixes the interrupt storm seen on the Pegasos board when shutting
down the interface.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c