Messages in this thread | | | From | Tomasz Figa <> | Date | Tue, 13 Mar 2018 19:15:08 +0900 | Subject | Re: [PATCH v9 1/5] driver core: Find an existing link between two devices |
| |
Hi Vivek,
Thanks for the patch.
On Tue, Mar 13, 2018 at 5:55 PM, Vivek Gautam <vivek.gautam@codeaurora.org> wrote: > The lists managing the device-links can be traversed to > find the link between two devices. The device_link_add() APIs > does traverse these lists to check if there's already a link > setup between the two devices. > So, add a new APIs, device_link_find(), to find an existing > device link between two devices - suppliers and consumers.
I'm wondering if this API would be useful for anything else that the problem we're trying to solve with deleting links without storing them anywhere. Perhaps a device_link_del_dev(consumer, supplier) would be a better alternative?
Best regards, Tomasz
| |