Commit 28b53d6d authored by Jeff Garzik's avatar Jeff Garzik

Merge pobox.com:/garz/repo/netdev-2.6/sundance

into pobox.com:/garz/repo/net-drivers-2.6
parents 8a09222d 59fb935e
...@@ -1210,10 +1210,12 @@ static irqreturn_t intr_handler(int irq, void *dev_instance, struct pt_regs *rgs ...@@ -1210,10 +1210,12 @@ static irqreturn_t intr_handler(int irq, void *dev_instance, struct pt_regs *rgs
} }
/* Yup, this is a documentation bug. It cost me *hours*. */ /* Yup, this is a documentation bug. It cost me *hours*. */
iowrite16 (0, ioaddr + TxStatus); iowrite16 (0, ioaddr + TxStatus);
tx_status = ioread16 (ioaddr + TxStatus); if (tx_cnt < 0) {
if (tx_cnt < 0) iowrite32(5000, ioaddr + DownCounter);
break; break;
} }
tx_status = ioread16 (ioaddr + TxStatus);
}
hw_frame_id = (tx_status >> 8) & 0xff; hw_frame_id = (tx_status >> 8) & 0xff;
} else { } else {
hw_frame_id = ioread8(ioaddr + TxFrameId); hw_frame_id = ioread8(ioaddr + TxFrameId);
...@@ -1278,7 +1280,6 @@ static irqreturn_t intr_handler(int irq, void *dev_instance, struct pt_regs *rgs ...@@ -1278,7 +1280,6 @@ static irqreturn_t intr_handler(int irq, void *dev_instance, struct pt_regs *rgs
if (netif_msg_intr(np)) if (netif_msg_intr(np))
printk(KERN_DEBUG "%s: exiting interrupt, status=%#4.4x.\n", printk(KERN_DEBUG "%s: exiting interrupt, status=%#4.4x.\n",
dev->name, ioread16(ioaddr + IntrStatus)); dev->name, ioread16(ioaddr + IntrStatus));
iowrite32(5000, ioaddr + DownCounter);
return IRQ_RETVAL(handled); return IRQ_RETVAL(handled);
} }
......
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