netdev/fec.c: add phylib supporting to enable carrier detection (v2)
authorBryan Wu <[email protected]>
Wed, 31 Mar 2010 02:10:44 +0000 (02:10 +0000)
committerDavid S. Miller <[email protected]>
Fri, 2 Apr 2010 02:53:13 +0000 (19:53 -0700)
commite6b043d512fa8d9a3801bf5d72bfa3b8fc3b3cc8
treedf7adaf0e220436ba0b5b5219e930a1b6697e4b3
parent5acbbd428db47b12f137a8a2aa96b3c0a96b744e
netdev/fec.c: add phylib supporting to enable carrier detection (v2)

BugLink: http://bugs.launchpad.net/bugs/457878
v2:
 - remove duplicated phy_speed caculation
 - fix the phy_speed caculation according to the DataSheet

v1:
 - removed old MII phy control code
 - add phylib supporting
 - add ethtool interface to make user space NetworkManager works

Tested on Freescale i.MX51 Babbage board.

This patch is based on a patch from Frederic Rodo <[email protected]>

Cc: Frederic Rodo <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
Acked-by: Amit Kucheria <[email protected]>
Acked-by: Sascha Hauer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/Kconfig
drivers/net/fec.c