netdev/fec: fix ifconfig eth0 down hang issue
authorBryan Wu <bryan.wu@canonical.com>
Fri, 28 May 2010 10:40:39 +0000 (03:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 May 2010 10:40:39 +0000 (03:40 -0700)
commit418bd0d4dfbff25ffe4365ddd3e7cba8c70ccba8
tree7366addfff922e8a0508054101c09a4593540a34
parentb58ffb41fc09d1ffaca97e5ae801233575be2a7f
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fec.c