]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: suspend phydev when going to HALTED
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Fri, 13 Dec 2013 09:20:29 +0000 (10:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2013 19:42:44 +0000 (14:42 -0500)
commit0818fb4d651d37a7c81299c238b0b7b09caf600f
treeed294b23c4e02b34473e3c56f6c0d2599d8f2a1d
parent6fd21e96fee3c97325623371c08a3813a376ae29
net: phy: suspend phydev when going to HALTED

When phydev is going to HALTED state, we can try to suspend it to
safe more power. phy_suspend helper will check if PHY can be suspended,
so just call it when entering HALTED state.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c