Skip to content

Commit 78aa904

Browse files
committed
Merge branches 'pm-core' and 'pm-misc'
* pm-core: PM / runtime: Document new pm_runtime_set_suspended() constraint * pm-misc: thunderbolt: icm: Ignore mailbox errors in icm_suspend()
3 parents 8a05c31 + c3bf5bb + a684c5b commit 78aa904

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Documentation/power/runtime_pm.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
435435
PM status to 'suspended' and update its parent's counter of 'active'
436436
children as appropriate (it is only valid to use this function if
437437
'power.runtime_error' is set or 'power.disable_depth' is greater than
438-
zero)
438+
zero); it will fail and return an error code if the device has a child
439+
which is active and the 'power.ignore_children' flag is unset
439440

440441
bool pm_runtime_active(struct device *dev);
441442
- return true if the device's runtime PM status is 'active' or its

drivers/thunderbolt/icm.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,14 @@ static int icm_driver_ready(struct tb *tb)
904904

905905
static int icm_suspend(struct tb *tb)
906906
{
907-
return nhi_mailbox_cmd(tb->nhi, NHI_MAILBOX_SAVE_DEVS, 0);
907+
int ret;
908+
909+
ret = nhi_mailbox_cmd(tb->nhi, NHI_MAILBOX_SAVE_DEVS, 0);
910+
if (ret)
911+
tb_info(tb, "Ignoring mailbox command error (%d) in %s\n",
912+
ret, __func__);
913+
914+
return 0;
908915
}
909916

910917
/*

0 commit comments

Comments
 (0)