Merge branch 'pm-runtime'
* pm-runtime: PM / Runtime: let rpm_resume() succeed if RPM_ACTIVE, even when disabled, v2
This commit is contained in:
commit
071f58279f
1 changed files with 3 additions and 0 deletions
|
@ -509,6 +509,9 @@ static int rpm_resume(struct device *dev, int rpmflags)
|
|||
repeat:
|
||||
if (dev->power.runtime_error)
|
||||
retval = -EINVAL;
|
||||
else if (dev->power.disable_depth == 1 && dev->power.is_suspended
|
||||
&& dev->power.runtime_status == RPM_ACTIVE)
|
||||
retval = 1;
|
||||
else if (dev->power.disable_depth > 0)
|
||||
retval = -EACCES;
|
||||
if (retval)
|
||||
|
|
Loading…
Reference in a new issue