patch-2.4.25 linux-2.4.25/arch/ppc/8260_io/fcc_enet.c

Next file: linux-2.4.25/arch/ppc/8xx_io/Config.in
Previous file: linux-2.4.25/arch/parisc/defconfig
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/ppc/8260_io/fcc_enet.c linux-2.4.25/arch/ppc/8260_io/fcc_enet.c
@@ -1327,6 +1327,12 @@
 	 */
 	eap = (unsigned char *)&(ep->fen_paddrh);
 	for (i=5; i>=0; i--) {
+
+/* 
+ * The EP8260 only uses FCC3, so we can safely give it the real
+ * MAC address.
+ */
+#ifndef CONFIG_RPX6
 		if (i == 3) {
 			dev->dev_addr[i] = bd->bi_enetaddr[i];
 			dev->dev_addr[i] |= (1 << (7 - fip->fc_fccnum));
@@ -1335,6 +1341,9 @@
 		else {
 			*eap++ = dev->dev_addr[i] = bd->bi_enetaddr[i];
 		}
+#else
+		*eap++ = dev->dev_addr[i] = bd->bi_enetaddr[i];
+#endif
 	}
 
 	ep->fen_taddrh = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)