driver core: Add device link support for INFERRED flag
authorSaravana Kannan <saravanak@google.com>
Fri, 18 Dec 2020 03:17:00 +0000 (19:17 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 19:55:00 +0000 (20:55 +0100)
commit4b9bbb29baf6c948d24eaeff892815b8a403b64c
tree2c15c0b0bc8e4305c2b1e64919edd2c8329e1cc2
parentfb88c9a3e2ed984363996a68f4fd7d982dc4d8b6
driver core: Add device link support for INFERRED flag

This flag can never be added to a device link that already exists and
doesn't have the flag set. It can only be added when a device link is
created for the first time or it can be maintained if the device link
already has the it set.

This flag will be used for marking device links created ONLY by
inferring dependencies from data and NOT from explicit action by device
drivers/frameworks.  This will be useful in the future when we need to
deal with cycles in dependencies inferred from firmware.

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