Skip to content

Commit

Permalink
Merge branches 'pm-core' and 'pm-misc'
Browse files Browse the repository at this point in the history
* pm-core:
  PM / runtime: Document new pm_runtime_set_suspended() constraint

* pm-misc:
  thunderbolt: icm: Ignore mailbox errors in icm_suspend()
  • Loading branch information
Rafael J. Wysocki committed Aug 3, 2017
3 parents 8a05c31 + c3bf5bb + a684c5b commit 78aa904
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Documentation/power/runtime_pm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
PM status to 'suspended' and update its parent's counter of 'active'
children as appropriate (it is only valid to use this function if
'power.runtime_error' is set or 'power.disable_depth' is greater than
zero)
zero); it will fail and return an error code if the device has a child
which is active and the 'power.ignore_children' flag is unset

bool pm_runtime_active(struct device *dev);
- return true if the device's runtime PM status is 'active' or its
Expand Down
9 changes: 8 additions & 1 deletion drivers/thunderbolt/icm.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,14 @@ static int icm_driver_ready(struct tb *tb)

static int icm_suspend(struct tb *tb)
{
return nhi_mailbox_cmd(tb->nhi, NHI_MAILBOX_SAVE_DEVS, 0);
int ret;

ret = nhi_mailbox_cmd(tb->nhi, NHI_MAILBOX_SAVE_DEVS, 0);
if (ret)
tb_info(tb, "Ignoring mailbox command error (%d) in %s\n",
ret, __func__);

return 0;
}

/*
Expand Down

0 comments on commit 78aa904

Please sign in to comment.