netdev/fec: fix ifconfig eth0 down hang issue
authorBryan Wu <bryan.wu@canonical.com>
Tue, 18 May 2010 04:56:55 +0000 (12:56 +0800)
committerMatt Sealey <neko@excel.(none)>
Tue, 10 Aug 2010 16:50:27 +0000 (11:50 -0500)
commit4c0e351a6205be3f8074379671e5e70b3b5f2f06
tree182df9f66524ba83c31806ace0b4b83d7ac14c51
parentfdaea2afe327a3a12c009703e802a444b18a5ab8
netdev/fec: fix ifconfig eth0 down hang issue

BugLink: http://bugs.launchpad.net/bugs/559065
In fec open/close function, we need to use phy_connect and phy_disconnect
operation before we start/stop phy. Otherwise it will cause system hang.

Only call fec_enet_mii_probe() in open function, because the first open
action will cause NULL pointer error.

Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/fec.c