enabling MDIO on ppc/8xx_io/fec.c causes ioctl problems

Vitaly Bordug vbordug at ru.mvista.com
Tue Oct 31 06:19:19 EST 2006


On Mon, 30 Oct 2006 20:07:29 +0100
Antonio Di Bacco <antonio.dibacco at aruba.it> wrote:

> I enabled the use of MDIO in the fec.c driver but now the driver doesn't 
> handle some ioctls that ifconfig sends to it. I saw that there is this code 
> snippet in the driver:
> 
> #ifdef	CONFIG_USE_MDIO
> 	dev->do_ioctl = fec_enet_ioctl;
> 
> 	for (i=0; i<NMII-1; i++)
> 		mii_cmds[i].mii_next = &mii_cmds[i+1];
> 	mii_free = mii_cmds;
> #endif	/* CONFIG_USE_MDIO */
> 
> But fec_enet_ioctl treats only mii related ioctls.
> 
> What am I missing?
> 
The 8xx_io/ stuff is obsoleted long ago. You should use drivers/fs_enet/* for your FEC eth instead.
arch/ppc/mpc885_setup.c can hand some guidance on ho to do that.


-- 
Sincerely, 
Vitaly



More information about the Linuxppc-embedded mailing list