> -----Original Message----- > From: Dushara Jayasinghe [mailto:dusha...@optiscan.com] > Sent: Thursday, February 19, 2009 2:33 PM > To: linuxppc-dev@ozlabs.org > Cc: Li Yang-R58472 > Subject: RE: Newby trying to get Ethernet going on MPC83xx > series device. > > Thanks for the swift response. > > > > I also found that both gfar_init (in gianfar.c) and > gfar_mdio_init > > > (in gianfar_mii.c) are called but the probe handlers of either of > > > these devices are not executed. > > > > > > What am I missing? > > > Don't find any obvious problem. I suggest you to debug > gfar_of_init() > > in arch/powerpc/sysdev/fsl_soc.c to see if it works correctly. > > That fn doesn't exist in the dev tree I'm using (commit > 103f194f3ccf46842548eb52e607167b6d4951ef) > > The driver is now initialised through of_device. I can't > figure out how the probe handler is invoked.
Well, I was looking at an older tree. If you are using of_device for TSEC, the most likely cause of this problem is that of_platform_bus_probe() didn't probe your ethernet nodes. Refer to the following code in arch/powerpc/platforms/83xx/mpc834x_itx.c. Make sure it creates of_platform_device for TSEC. static struct of_device_id __initdata mpc834x_itx_ids[] = { { .compatible = "fsl,pq2pro-localbus", }, { .compatible = "simple-bus", }, {}, }; static int __init mpc834x_itx_declare_of_platform_devices(void) { return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL); } machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices); _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev