DORMANTno replies

[PATCH 2/5] 2.4.27-pre3 pcnet32 avoid hard hang with some chip variants.

From: Don Fry <hidden>
Date: 2004-05-21 20:57:20

This patch fixes a hard hang with 79C975 and 79C976 chip variants when
dumping BCR register #34.
--- linux-2.4.27-pre3/drivers/net/static.pcnet32.c	Fri May 21 12:36:44 2004
+++ linux-2.4.27-pre3/drivers/net/pcnet32.c	Fri May 21 12:36:56 2004
@@ -895,7 +895,7 @@
     *buff++ = a->read_csr(ioaddr, 114);
 
     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 */
-- 
Don Fry
brazilnut@us.ibm.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help