]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: keep track of the PHY suspend state
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 27 Jan 2015 06:05:39 +0000 (22:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 08:16:51 +0000 (00:16 -0800)
commitf93a2fe3f39093a06e6dfbec18a0855c2540c4a0
treeb9b22fb33dbeecda77bb31d3cbb0b0fe0b9547cd
parent6247bbf70395d950ab4ca26c5fb056576b9d5f17
net: phy: keep track of the PHY suspend state

In order to avoid double calls to phydev->drv->suspend and resume, keep
track of whether the PHY has already been suspended as a consequence of
a successful call to phy_suspend(). We will use this in our MDIO bus
suspend/resume hooks to avoid a double suspend call.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/phy.h