diff options
author | Gabriel Paubert <paubert@iram.es> | 2009-01-19 17:18:09 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-19 17:58:07 -0800 |
commit | fe65e704534de5d0661ebc3466a2b9018945f694 (patch) | |
tree | dc2cf1570a191641ec17bb537869e55c724d9702 /drivers/net/mv643xx_eth.c | |
parent | 2b448334a255d34401562229f467ffd95d8ed6ef (diff) | |
download | linux-fe65e704534de5d0661ebc3466a2b9018945f694.tar.gz linux-fe65e704534de5d0661ebc3466a2b9018945f694.tar.bz2 linux-fe65e704534de5d0661ebc3466a2b9018945f694.zip |
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>
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 8c6979a26d61..5f31bbb614af 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c @@ -2212,6 +2212,7 @@ static int mv643xx_eth_stop(struct net_device *dev) struct mv643xx_eth_private *mp = netdev_priv(dev); int i; + wrlp(mp, INT_MASK_EXT, 0x00000000); wrlp(mp, INT_MASK, 0x00000000); rdlp(mp, INT_MASK); |