diff options
author | Zhangfei Gao <zhangfei.gao@linaro.org> | 2014-05-15 13:35:34 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-16 15:17:58 -0400 |
commit | 6e14a5eeb158215881ef4507833a3574d0dbad19 (patch) | |
tree | 729b51179e2cf5a3616b5520684219052722616f /net/rxrpc/ar-key.c | |
parent | 0c2e3fa9583192b0255fa9ec0260350e6ed202bd (diff) |
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 <xuejiancheng@huawei.com>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/ar-key.c')
0 files changed, 0 insertions, 0 deletions