Saravana Kannan e2ae9bcc4a driver core: Add support for linking devices during device addition
The firmware corresponding to a device (dev.fwnode) might be able to
provide functional dependency information between a device and its
supplier and consumer devices.  Tracking this functional dependency
allows optimizing device probe order and informing a supplier when all
its consumers have probed (and thereby actively managing their
resources).

The existing device links feature allows tracking and using
supplier-consumer relationships. So, this patch adds the add_links()
fwnode callback to allow firmware to create device links for each
device as the device is added.

However, when consumer devices are added, they might not have a supplier
device to link to despite needing mandatory resources/functionality from
one or more suppliers. A waiting_for_suppliers list is created to track
such consumers and retry linking them when new devices get added.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20190904211126.47518-3-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-04 17:29:50 +02:00
..
2019-07-17 06:57:52 -03:00
2019-09-03 16:04:19 +02:00
2019-07-15 11:03:03 -03:00
2019-06-06 16:51:37 +02:00
2019-07-15 11:03:04 -03:00
2019-07-26 08:15:26 -06:00
2019-07-17 06:57:52 -03:00
2019-06-07 11:35:15 -06:00
2016-09-06 09:14:52 -06:00
2018-04-20 19:14:40 -04:00
2016-09-06 09:14:52 -06:00