[PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***

Joakim Tjernlund joakim.tjernlund at transmode.se
Thu May 7 18:26:40 EST 2009


> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> Cc: Grant Likely <grant.likely at secretlab.ca>
> Cc: John Rigby <jcrigby at gmail.com>
> ---
> This patch is NOT intended for inclusion into mainline, but rather a
> request for help. For some reason which I don't understand yet, the
> Ethernet interface on the ARIA board does not work in the default
> configuration, because MII probing fails.
> 
> What I'm seeing is this; the problem is with this part of code in
> "drivers/net/fs_enet/mii-fec.c":
> 
> 156         fec->mii_speed = ((ppc_proc_freq + 4999999) / 5000000) << 1;
> ...
> 163         out_be32(&fec->fecp->fec_mii_speed, fec->mii_speed);

Just a stab in the dark: Perhaps the fec->fecp->fec_mii_speed field is
misaligned or is 16 bits ?

   Jocke




More information about the Linuxppc-dev mailing list