Commit 85cf572c authored by Dale Farnsworth's avatar Dale Farnsworth Committed by Jeff Garzik

mv643xx: Clear pending interrupts before calling request_irq

Signed-off-by: default avatarDale Farnsworth <dale@farnsworth.org>
Acked-by: default avatarGiridhar Pemmasani <pgiri@yahoo.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 276e26c3
...@@ -787,6 +787,12 @@ static int mv643xx_eth_open(struct net_device *dev) ...@@ -787,6 +787,12 @@ static int mv643xx_eth_open(struct net_device *dev)
unsigned int size; unsigned int size;
int err; int err;
/* Clear any pending ethernet port interrupts */
mv_write(MV643XX_ETH_INTERRUPT_CAUSE_REG(port_num), 0);
mv_write(MV643XX_ETH_INTERRUPT_CAUSE_EXTEND_REG(port_num), 0);
/* wait for previous write to complete */
mv_read (MV643XX_ETH_INTERRUPT_CAUSE_EXTEND_REG(port_num));
err = request_irq(dev->irq, mv643xx_eth_int_handler, err = request_irq(dev->irq, mv643xx_eth_int_handler,
IRQF_SHARED | IRQF_SAMPLE_RANDOM, dev->name, dev); IRQF_SHARED | IRQF_SAMPLE_RANDOM, dev->name, dev);
if (err) { if (err) {
...@@ -875,10 +881,6 @@ static int mv643xx_eth_open(struct net_device *dev) ...@@ -875,10 +881,6 @@ static int mv643xx_eth_open(struct net_device *dev)
mv643xx_eth_rx_refill_descs(dev); /* Fill RX ring with skb's */ mv643xx_eth_rx_refill_descs(dev); /* Fill RX ring with skb's */
/* Clear any pending ethernet port interrupts */
mv_write(MV643XX_ETH_INTERRUPT_CAUSE_REG(port_num), 0);
mv_write(MV643XX_ETH_INTERRUPT_CAUSE_EXTEND_REG(port_num), 0);
eth_port_start(dev); eth_port_start(dev);
/* Interrupt Coalescing */ /* Interrupt Coalescing */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment