ARM: shmobile: Lager: add Micrel KSZ8041 PHY fixup
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 14 Sep 2013 00:29:22 +0000 (04:29 +0400)
committerSimon Horman <horms+renesas@verge.net.au>
Sat, 21 Sep 2013 16:57:38 +0000 (09:57 -0700)
commit48c8b96f21817aad695246ef020b849d466cc502
tree2c6fa4ef4afe0e34f295a3d58cca5f96f068c07c
parentdf1d0584b2292df5b9d576d7e5246e94616220a1
ARM: shmobile: Lager: add Micrel KSZ8041 PHY fixup

Currently on the Lager board NFS timeouts/delays are seen when booting.  That
turned out to happen because the SoC's ETH_LINK signal turns on and off after
each packet.  It is connected to Micrel KSZ8041 PHY's LED0 signal. Ether LEDs
on the Lager board are named LINK and ACTIVE which corresponds to non-default
01 setting of the PHY control register 1 bits 14-15. The 'sh_eth' driver resets
the PHY when opening the network device, so we have to set the mentioned bits
back to 01 from the default 00 value which causes bouncing of ETH_LINK.  That
can be achieved using the PHY platform fixup mechanism if we also modify the
driver to use it..

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-lager.c