From: Zhangfei Gao Date: Thu, 15 May 2014 05:35:34 +0000 (+0800) Subject: net: phy: resume phydev when going to RESUMING X-Git-Tag: omap-for-v3.16/fixes-against-rc1~146^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e14a5eeb158215881ef4507833a3574d0dbad19;p=pandora-kernel.git net: phy: resume phydev when going to RESUMING With commit be9dad1f9f26604fb ("net: phy: suspend phydev when going to HALTED"), an unused PHY device will be put in a low-power mode using BMCR_PDOWN. Some Ethernet drivers might be calling phy_start() and phy_stop() from ndo_open and ndo_close() respectively, while calling phy_connect() and phy_disconnect() from probe and remove. In such a case, the PHY will be powered down during the phy_stop() call, but will fail to be powered up in phy_start(). This patch fixes this scenario. Signed-off-by: Jiancheng Xue Signed-off-by: Zhangfei Gao Signed-off-by: David S. Miller --- Reading git-diff-tree failed