driver core: fw_devlink: Handle suppliers that don't use driver core
authorSaravana Kannan <saravanak@google.com>
Fri, 5 Feb 2021 22:26:41 +0000 (14:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 13:31:06 +0000 (14:31 +0100)
commit74c782cff77b3533290148df1fa6f8c7db5e60d5
treee0ddd425b9a87cda66d3e559e4f74beff26a5e66
parenta9dd8f3c2cf3413d9302ef12e88181cf001c3ed8
driver core: fw_devlink: Handle suppliers that don't use driver core

Device links only work between devices that use the driver core to match
and bind a driver to a device. So, add an API for frameworks to let the
driver core know that a fwnode has been initialized by a driver without
using the driver core.

Then use this information to make sure that fw_devlink doesn't make the
consumers wait indefinitely on suppliers that'll never bind to a driver.

Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20210205222644.2357303-6-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/fwnode.h