driver core: Allow a device to wait on optional suppliers
authorSaravana Kannan <saravanak@google.com>
Mon, 28 Oct 2019 22:00:23 +0000 (15:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Nov 2019 17:05:17 +0000 (18:05 +0100)
commitbcbbcfd57247f4c2976055995e5760fb576aae1e
treecb6db68c1ef8083ff8eb7899b2fd6d1a1dbce94c
parent05ef983e0d65a31b370a4e1b93c1efd490ae778f
driver core: Allow a device to wait on optional suppliers

Before this change, if a device is waiting on suppliers, it's assumed
that all those suppliers are needed for the device to probe
successfully. This change allows marking a devices as waiting only on
optional suppliers. This allows a device to wait on suppliers (and link
to them as soon as they are available) without preventing the device
from being probed.

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