Thread (15 messages) 15 messages, 6 authors, 2009-02-23

RE: Newby trying to get Ethernet going on MPC83xx series device.

From: Li Yang-R58472 <hidden>
Date: 2009-02-19 06:42:10

-----Original Message-----
From: Dushara Jayasinghe [mailto:DusharaJ@optiscan.com]=20
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=20
series device.
=20
Thanks for the swift response.
=20
quoted
quoted
I also found that both gfar_init (in gianfar.c) and=20
gfar_mdio_init=20
quoted
quoted
(in gianfar_mii.c) are called but the probe handlers of either of=20
these devices are not executed.
=20
What am I missing?
=20
quoted
Don't find any obvious problem.  I suggest you to debug=20
gfar_of_init()=20
quoted
in arch/powerpc/sysdev/fsl_soc.c to see if it works correctly.
=20
That fn doesn't exist in the dev tree I'm using (commit=20
103f194f3ccf46842548eb52e607167b6d4951ef)
=20
The driver is now initialised through of_device. I can't=20
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[] =3D {
        { .compatible =3D "fsl,pq2pro-localbus", },
        { .compatible =3D "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);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help