Skip to contentSkip to conversation

: PCnet/HOME media type

PATCH New Mike Perry 1 participant 1 message Sep 17, 2001 Network drivers

lore
Share & tools
lore

Mike Perry

author
#0 lore raw

PATCH 1/1 : PCnet/HOME media type

I recently had the misfortune of having to use a one of those PCnet/HOME RJ11 networking devices, and I noticed that the pcnet32 driver in 2.4.9 wasn't setting the media type for that device. (Actually, it appeared to be moved within an #if 0, so all I really had to do was move it back out). For some reason the default type on my device was to use 10BaseT (0x8000), and not the HomePNA (0x8001).

Also, the tech docs for the PCnet/Home say it uses a 79c971 core, so I was wondering if the flags for the 79c971 should be set for it as well. Since it worked for me either way, I just left the new flags commented in this patch.

--
Mike Perry
Minister of General Mayhem
fscked.org enterprises, inc

drivers/net/pcnet32.c +6 -3
@@ -570,7 +570,10 @@
 	break;
     case 0x2626:
 	chipname = "PCnet/Home 79C978"; /* PCI */
-	fdx = 1;
+	/* We are the same as the 79c971, but these flags don't make
+	 * a difference either way as far as it working, so I left them 
+	 * off */
+	fdx = 1; /* mii = 1; fset = 1; ltint = 1; */
 	/* 
 	 * This is based on specs published at www.amd.com.  This section
 	 * assumes that a card with a 79C978 wants to go into 1Mb HomePNA
@@ -583,9 +586,9 @@
 #if 0
 	if (pcnet32_debug > 2)
 	    printk(KERN_DEBUG "pcnet32: pcnet32 media value %#x.\n",  media);
-	media &= ~3;
-	media |= 1;
 #endif
+	media &= ~3;
+	media |= 1; 
 	if (pcnet32_debug > 2)
 	    printk(KERN_DEBUG "pcnet32: pcnet32 media reset to %#x.\n",  media);
 	a->write_bcr (ioaddr, 49, media);