Skip to contentSkip to conversation

Second 3c509 missing (2.5.71 thru 2.6.0-t7)

DISCUSSION Pete Clements 2 participants 3 messages Oct 10, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Since things are moving into fixes...

I use 3c509 compiled in. Second card not detected. This has been the case with the stock kernel since 2.5.71. Have been replacing the code for all kernels since .70. Have not tried as modules.

Signature · 1 line
Pete Clements 
#1 lore raw
Quoted 5 lines · On Thu, 9 Oct 2003 21:26:01 -0400 (EDT) Pete Clements…

Since things are moving into fixes...

I use 3c509 compiled in. Second card not detected. This has been the case with the stock kernel since 2.5.71. Have been replacing the code for all kernels since .70. Have not tried as modules.

Try this.

drivers/net/Space.c +4 -6
diff -Nru a/drivers/net/Space.c b/drivers/net/Space.c
@@ -433,17 +433,15 @@
 	
 #ifdef CONFIG_SBNI
 	for (num = 0; num < 8; ++num)
-		if (sbni_probe(num))
-			break;
+		sbni_probe(num);
 #endif
 #ifdef CONFIG_TR
 	for (num = 0; num < 8; ++num)
-		if (trif_probe(num))
-			break;
+		trif_probe(num);
 #endif
 	for (num = 0; num < 8; ++num)
-		if (ethif_probe(num))
-			break;
+		ethif_probe(num);
+
 #ifdef CONFIG_COPS
 	cops_probe(0);
 	cops_probe(1);
#2 lore raw

Quoting Stephen Hemminger
Tried, but does not fix, result is same. Thanks.

Quoted 33 lines
Quoted 4 lines

I use 3c509 compiled in. Second card not detected. This has been the case with the stock kernel since 2.5.71. Have been replacing the code for all kernels since .70. Have not tried as modules.

Try this.

diff -Nru a/drivers/net/Space.c b/drivers/net/Space.c

drivers/net/Space.c +4 -6
@@ -433,17 +433,15 @@
 
 #ifdef CONFIG_SBNI
 	for (num = 0; num < 8; ++num)
-		if (sbni_probe(num))
-			break;
+		sbni_probe(num);
 #endif
 #ifdef CONFIG_TR
 	for (num = 0; num < 8; ++num)
-		if (trif_probe(num))
-			break;
+		trif_probe(num);
 #endif
 	for (num = 0; num < 8; ++num)
-		if (ethif_probe(num))
-			break;
+		ethif_probe(num);
+
 #ifdef CONFIG_COPS
 	cops_probe(0);
 	cops_probe(1);
Signature · 1 line
Pete Clements