Commit ea8cba88 authored by Don Fry's avatar Don Fry Committed by Jeff Garzik

[PATCH] pcnet32: avoid hard hang with some chip variants.

This patch fixes a hard hang with 79C975 and 79C976 chip variants when
dumping BCR register #34.
parent 741948bc
...@@ -895,7 +895,7 @@ static void pcnet32_get_regs(struct net_device *dev, struct ethtool_regs *regs, ...@@ -895,7 +895,7 @@ static void pcnet32_get_regs(struct net_device *dev, struct ethtool_regs *regs,
*buff++ = a->read_csr(ioaddr, 114); *buff++ = a->read_csr(ioaddr, 114);
for (i = 0; i <= 35; i++) { for (i = 0; i <= 35; i++) {
*buff++ = a->read_bcr(ioaddr, i); *buff++ = (i == 34) ? 0xdead : a->read_bcr(ioaddr, i);
} }
if (!(csr0 & 0x0004)) { /* If not stopped */ if (!(csr0 & 0x0004)) { /* If not stopped */
......
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