diff mbox

[v2,07/10] driver core: Add support for links to already probed drivers

Message ID 1466144820-6286-8-git-send-email-m.szyprowski@samsung.com
State New
Headers show

Commit Message

Marek Szyprowski June 17, 2016, 6:26 a.m. UTC
Set proper link state if link is created between already probed supplier
device and to be probed consumer device.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

---
 drivers/base/core.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox

Patch

diff --git a/drivers/base/core.c b/drivers/base/core.c
index 4e778539b750..d9c5c5542a6b 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -125,7 +125,9 @@  struct devlink *device_link_add(struct device *consumer,
 
 	link->flags = flags;
 	link->status = (flags & DEVICE_LINK_PROBE_TIME) ?
-			DEVICE_LINK_CONSUMER_PROBE : DEVICE_LINK_DORMANT;
+			DEVICE_LINK_CONSUMER_PROBE :
+			(supplier->driver ? DEVICE_LINK_AVAILABLE :
+			 DEVICE_LINK_DORMANT);
 	spin_lock_init(&link->lock);
 
 	/*