Skip to content
Commit bfcc1e67 authored by Florian Fainelli's avatar Florian Fainelli Committed by Rafael J. Wysocki
Browse files

PM: sleep: Do not assume that "mem" is always present



An implementation of suspend_ops is allowed to reject the PM_SUSPEND_MEM
suspend type from its ->valid() callback, we should not assume that it
is always present as this is not a correct reflection of what a firmware
interface may support.

Fixes: 406e7938 ("PM / sleep: System sleep state selection interface rework")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 6880fa6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment