From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161426AbcFHSMk (ORCPT ); Wed, 8 Jun 2016 14:12:40 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:35898 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161282AbcFHSMh (ORCPT ); Wed, 8 Jun 2016 14:12:37 -0400 MIME-Version: 1.0 In-Reply-To: <20160608124844.GH7510@sirena.org.uk> References: <1623682.7KVblAB3KQ@vostro.rjw.lan> <2576341.476ZsjkPgF@vostro.rjw.lan> <1816598.SuJvGrVRJK@vostro.rjw.lan> <20160608124844.GH7510@sirena.org.uk> From: "Rafael J. Wysocki" Date: Wed, 8 Jun 2016 20:12:34 +0200 X-Google-Sender-Auth: BNoT9p5TJYiM7w7FPChFyi5WA18 Message-ID: Subject: Re: [RFC][PATCH 2/5] driver core: Functional dependencies tracking support To: Mark Brown Cc: "Rafael J. Wysocki" , Linux PM list , Greg Kroah-Hartman , Linux Kernel Mailing List , Alan Stern , Grant Likely , Mark Brown , Rob Herring , Tomeu Vizoso , Thierry Reding , Dmitry Torokhov , Geert Uytterhoeven , Michael Turquette Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 8, 2016 at 2:48 PM, Mark Brown wrote: > On Thu, Jan 14, 2016 at 02:54:17AM +0100, Rafael J. Wysocki wrote: > >> + * A side effect of the link creation is re-ordering of dpm_list and the >> + * devices_kset list by moving the consumer device and all devices depending >> + * on it to the ends of those lists. > > How does this work in the scenario where a device instantiates a child > device then uses services that child provides to complete the > initializiation? We do have that scenario currently for on chip > regulators to allow external regulators to be used. I'm not sure I understand the question correctly, but it that is the parent and a child, we don't need an extra link entity to represent that dependency, as parent-child dependencies are taken by the current code into account already. This series was supposed to help with dependencies that aren't of the parent-child type.