netdev/fec.c: add phylib supporting to enable carrier detection (v2)
authorBryan Wu <bryan.wu@canonical.com>
Wed, 31 Mar 2010 02:10:44 +0000 (02:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
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 <fred.rodo@gmail.com>

Cc: Frederic Rodo <fred.rodo@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Amit Kucheria <amit.kucheria@canonical.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig
drivers/net/fec.c