* enabling MDIO on ppc/8xx_io/fec.c causes ioctl problems
@ 2006-10-30 19:07 Antonio Di Bacco
2006-10-30 19:19 ` Vitaly Bordug
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Di Bacco @ 2006-10-30 19:07 UTC (permalink / raw)
To: linuxppc-embedded
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?
Thank you,
Antonio.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: enabling MDIO on ppc/8xx_io/fec.c causes ioctl problems
2006-10-30 19:07 enabling MDIO on ppc/8xx_io/fec.c causes ioctl problems Antonio Di Bacco
@ 2006-10-30 19:19 ` Vitaly Bordug
0 siblings, 0 replies; 2+ messages in thread
From: Vitaly Bordug @ 2006-10-30 19:19 UTC (permalink / raw)
To: Antonio Di Bacco; +Cc: linuxppc-embedded
On Mon, 30 Oct 2006 20:07:29 +0100
Antonio Di Bacco <antonio.dibacco@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-30 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30 19:07 enabling MDIO on ppc/8xx_io/fec.c causes ioctl problems Antonio Di Bacco
2006-10-30 19:19 ` Vitaly Bordug
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox