We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac338ac commit 7703616Copy full SHA for 7703616
drivers/base/core.c
@@ -718,6 +718,8 @@ static void __device_links_queue_sync_state(struct device *dev,
718
{
719
struct device_link *link;
720
721
+ if (!dev_has_sync_state(dev))
722
+ return;
723
if (dev->state_synced)
724
return;
725
@@ -819,7 +821,7 @@ late_initcall(sync_state_resume_initcall);
819
821
820
822
static void __device_links_supplier_defer_sync(struct device *sup)
823
- if (list_empty(&sup->links.defer_sync))
824
+ if (list_empty(&sup->links.defer_sync) && dev_has_sync_state(sup))
825
list_add_tail(&sup->links.defer_sync, &deferred_sync);
826
}
827
0 commit comments