commit | 8a477a6fb6a33651adda772360b85fd813569743 | [log] [tgz] |
---|---|---|
author | Florian Fainelli <f.fainelli@gmail.com> | Mon Jan 26 22:05:39 2015 -0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Jan 27 00:16:51 2015 -0800 |
tree | b9b22fb33dbeecda77bb31d3cbb0b0fe0b9547cd | |
parent | aae88261abd58fffef7ee0e00160ce4ea105b0f3 [diff] |
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>