Re: enabling MDIO on ppc/8xx_io/fec.c causes ioctl problems
From: Vitaly Bordug <hidden>
Date: 2006-10-30 19:19:21
From: Vitaly Bordug <hidden>
Date: 2006-10-30 19:19:21
On Mon, 30 Oct 2006 20:07:29 +0100 Antonio Di Bacco [off-list ref] 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