File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -904,7 +904,14 @@ static int icm_driver_ready(struct tb *tb)
904904
905905static 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/*
You can’t perform that action at this time.
0 commit comments