Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1510993 > unrolled thread
| Started by | Lukas Wunner <lukas@wunner.de> |
|---|---|
| First post | 2016-10-28 11:40 +0200 |
| Last post | 2016-11-02 22:00 +0100 |
| Articles | 2 — 2 participants |
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.
Re: [PATCH v5 0/5] Functional dependencies between devices Lukas Wunner <lukas@wunner.de> - 2016-10-28 11:40 +0200
Re: [PATCH v5 0/5] Functional dependencies between devices Hanjun Guo <hanjun.guo@linaro.org> - 2016-11-02 22:00 +0100
| From | Lukas Wunner <lukas@wunner.de> |
|---|---|
| Date | 2016-10-28 11:40 +0200 |
| Subject | Re: [PATCH v5 0/5] Functional dependencies between devices |
| Message-ID | <sxbNL-6sc-19@gated-at.bofh.it> |
On Thu, Oct 27, 2016 at 08:19:27PM +0800, Hanjun Guo wrote: > I'm trying to using this patch set to solve the functional dependency > between devices and irqchip, which are both ACPI platform devices. > irqchip needs to be probed before the devices connecting to them, > which specifically, it's the mbi-gen support I send out recently: > > https://lkml.org/lkml/2016/10/25/453 > > But I didn't see an example to do so in this patch set, and seems that > some extra code needs to be added for that purpose, could you give me > some suggestions for how to do that then I can work on and test against > your patch set? If the consumers can detect that there's a consumer on which they depend, you could call device_link_add() from their ->probe hook. Generally the earliest point in time when device links can be added is after device_initialize() has been called for the consumer and device_add() has been called for the supplier. (At least that's my understanding.) HTH, Lukas
[toc] | [next] | [standalone]
| From | Hanjun Guo <hanjun.guo@linaro.org> |
|---|---|
| Date | 2016-11-02 22:00 +0100 |
| Message-ID | <szaNz-2Ms-7@gated-at.bofh.it> |
| In reply to | #1510993 |
On 10/28/2016 05:39 PM, Lukas Wunner wrote: > On Thu, Oct 27, 2016 at 08:19:27PM +0800, Hanjun Guo wrote: >> I'm trying to using this patch set to solve the functional dependency >> between devices and irqchip, which are both ACPI platform devices. >> irqchip needs to be probed before the devices connecting to them, >> which specifically, it's the mbi-gen support I send out recently: >> >> https://lkml.org/lkml/2016/10/25/453 >> >> But I didn't see an example to do so in this patch set, and seems that >> some extra code needs to be added for that purpose, could you give me >> some suggestions for how to do that then I can work on and test against >> your patch set? > > If the consumers can detect that there's a consumer on which they depend, > you could call device_link_add() from their ->probe hook. > > Generally the earliest point in time when device links can be added is > after device_initialize() has been called for the consumer and device_add() > has been called for the supplier. (At least that's my understanding.) Thank you, currently I'm on travailing and will take a deep look to see if it works (or adding things on top) on my case. Thanks Hanjun
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web