|
@@ -1616,7 +1616,8 @@ void pm_runtime_drop_link(struct device *dev)
|
|
static bool pm_runtime_need_not_resume(struct device *dev)
|
|
static bool pm_runtime_need_not_resume(struct device *dev)
|
|
{
|
|
{
|
|
return atomic_read(&dev->power.usage_count) <= 1 &&
|
|
return atomic_read(&dev->power.usage_count) <= 1 &&
|
|
- atomic_read(&dev->power.child_count) == 0;
|
|
|
|
|
|
+ (atomic_read(&dev->power.child_count) == 0 ||
|
|
|
|
+ dev->power.ignore_children);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|