diff options
author | Heiner Kallweit <[email protected]> | 2020-03-26 18:58:24 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-03-26 20:29:51 -0700 |
commit | 8a8f8281e7e7a838b015276cce0443e319c5ebd6 (patch) | |
tree | 0e1f16a03c59ba56b65299849646417da8721c9c /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 05cc6c5b6d2c1974d3b28b6c3708d7124b1eaa1f (diff) |
net: phy: don't touch suspended flag if there's no suspend/resume callback
So far we set phydev->suspended to true in phy_suspend() even if the
PHY driver doesn't implement the suspend callback. This applies
accordingly for the resume path. The current behavior doesn't cause
any issue I'd be aware of, but it's not logical and misleading,
especially considering the description of the flag:
"suspended: Set to true if this phy has been suspended successfully"
Signed-off-by: Heiner Kallweit <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions