linux/drivers/base
Saravana Kannan d8505c3510 FROMGIT: driver core: Reevaluate dev->links.need_for_probe as suppliers are added
A previous patch 03324507e6 ("driver core: Allow
fwnode_operations.add_links to differentiate errors") forgot to update
all call sites to fwnode_operations.add_links. This patch fixes that.

Legend:
-> Denotes RHS is an optional/potential supplier for LHS
=> Denotes RHS is a mandatory supplier for LHS

Example:

Device A => Device X
Device A -> Device Y

Before this patch:
1. Device A is added.
2. Device A is marked as waiting for mandatory suppliers
3. Device X is added
4. Device A is left marked as waiting for mandatory suppliers

Step 4 is wrong since all mandatory suppliers of Device A have been
added.

After this patch:
1. Device A is added.
2. Device A is marked as waiting for mandatory suppliers
3. Device X is added
4. Device A is no longer considered as waiting for mandatory suppliers

This is the correct behavior.

Fixes: 03324507e6 ("driver core: Allow fwnode_operations.add_links to differentiate errors")
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200222014038.180923-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 1745d299af
https: //git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-next)
Bug: 150980623
Change-Id: I15210d65db4660dd315a09ff18f4499768f24378
(cherry picked from commit 3334f0da669ebd731adb8f8fba6298642ae8f27f)
2020-03-10 00:31:34 +00:00
..
firmware_loader
power This is the 4.19.103 stable release 2020-02-11 15:05:03 -08:00
regmap
test
arch_topology.c
attribute_container.c
base.h
bus.c
cacheinfo.c
class.c
component.c component: do not dereference opaque pointer in debugfs 2020-02-01 09:37:03 +00:00
container.c
core.c FROMGIT: driver core: Reevaluate dev->links.need_for_probe as suppliers are added 2020-03-10 00:31:34 +00:00
cpu.c
dd.c driver core: Print device when resources present in really_probe() 2020-02-24 08:34:47 +01:00
devcon.c
devcoredump.c
devres.c
devtmpfs.c
driver.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c mm/memory_hotplug: fix try_offline_node() 2020-01-29 16:43:27 +01:00
module.c
node.c This is the 4.19.100 stable release 2020-01-29 17:10:45 +01:00
pinctrl.c
platform-msi.c
platform.c driver core: platform: fix u32 greater or equal to zero comparison 2020-02-24 08:34:50 +01:00
property.c
soc.c
syscore.c
topology.c
transport_class.c