driver core: Add device link support for SYNC_STATE_ONLY flag
authorSaravana Kannan <saravanak@google.com>
Mon, 28 Oct 2019 22:00:22 +0000 (15:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Nov 2019 17:05:17 +0000 (18:05 +0100)
commit05ef983e0d65a31b370a4e1b93c1efd490ae778f
tree2e49999b97c043175144b72615c337f4ad9a2e2f
parent8f677bc819e7a74cf10e30daf06e8b151d1e6a94
driver core: Add device link support for SYNC_STATE_ONLY flag

Parent devices might need to create "proxy" device links from themselves
to supplier devices to make sure the supplier devices don't get a
sync_state() before the child consumer devices get a chance to add
device links to the supplier devices.

However, the parent device has no real dependency on the supplier device
and probing, suspend/resume or runtime PM don't need to be affected by
the supplier device.  To capture these cases, create a SYNC_STATE_ONLY
device link flag that only affects sync_state() behavior and doesn't
affect probing, suspend/resume or runtime PM.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20191028220027.251605-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/device.h