Skip to contentSkip to conversation

status of 2_4_devel

PATCH Andrew May 1 participant 1 message Oct 1, 2002 Network drivers

lore
Share & tools
lore

Andrew May

author
#0 lore raw

I have been off doing other stuff so I haven't done a resync of the tree since June.

First thing I ran into was a compile problem with the IBM OCP ethernet driver. Have things really not even compiled for the 405GP since Aug 22? This little patch should fix that problem.

==== ibm_ocp_enet.c 1.41 vs edited =====

ibm_ocp_enet.c renamed from drivers/net/ibm_ocp/ibm_ocp_enet.c +1 -1
@@ -1195,7 +1195,7 @@
 /*	if (tmp_em0isr & EMAC_ISR_MOS ) fep->stats.ZZZ++;		*/
 /*	if (tmp_em0isr & EMAC_ISR_MOF ) fep->stats.ZZZ++;		*/
 
-	ppc405_bl_mac_eth_dump(dev, tmp_em0isr);
+	ppc405_bl_mac_eth_dump((struct net_device*)dev_instance, tmp_em0isr);
 
 	out_be32(&emacp->em0isr, tmp_em0isr);
 }

Next I ran into problems with the UART init. Looking at arch/ppc/kernel/ocp_uart.c I was absolutely amazed. Why would you call early_serial_init with values from rs_table when early_serial_init puts the values right back into rs_table?

When I had John post the patch to add the call to early_s..., it was to get the base baud rate dynamically from the clock speed, so the value didn't need to be compiled in. As it is now the code in early_uart_init is completely pointless and just wastes space.

http://lists.linuxppc.org/linuxppc-embedded/200204/msg00129.html

ps: my home email is having problems so I cc'd my work/outlook account.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/