Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1424703 > unrolled thread
| Started by | Marek Szyprowski <m.szyprowski@samsung.com> |
|---|---|
| First post | 2016-06-17 08:30 +0200 |
| Last post | 2016-06-17 08:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 07/10] driver core: Add support for links to already probed drivers Marek Szyprowski <m.szyprowski@samsung.com> - 2016-06-17 08:30 +0200
| From | Marek Szyprowski <m.szyprowski@samsung.com> |
|---|---|
| Date | 2016-06-17 08:30 +0200 |
| Subject | [PATCH v2 07/10] driver core: Add support for links to already probed drivers |
| Message-ID | <rKVrY-2WT-5@gated-at.bofh.it> |
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(-) 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); /* -- 1.9.1
Back to top | Article view | linux.kernel
csiph-web