]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Use device's fwnode to check if it is waiting for suppliers
authorSaravana Kannan <saravanak@google.com>
Sat, 21 Nov 2020 02:02:28 +0000 (18:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:13:02 +0000 (19:13 +0100)
commit25d1466819be6331d73e107044f336034f07fdf0
tree249aaf46122d7df526dc9f2c1079e8bae6579cc9
parent48ab60d9ad41115669a1a0b669333ef5c6ea114c
driver core: Use device's fwnode to check if it is waiting for suppliers

To check if a device is still waiting for its supplier devices to be
added, we used to check if the devices is in a global
waiting_for_suppliers list. Since the global list will be deleted in
subsequent patches, this patch stops using this check.

Instead, this patch uses a more device specific check. It checks if the
device's fwnode has any fwnode links that haven't been converted to
device links yet.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20201121020232.908850-14-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c