From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752131AbcIIONg (ORCPT ); Fri, 9 Sep 2016 10:13:36 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37140 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbcIIONe (ORCPT ); Fri, 9 Sep 2016 10:13:34 -0400 MIME-Version: 1.0 In-Reply-To: <20160909120621.GP27946@sirena.org.uk> References: <27296716.H9VWo8ShOm@vostro.rjw.lan> <2169291.li0uc2Ryoq@vostro.rjw.lan> <20160909120621.GP27946@sirena.org.uk> From: Ulf Hansson Date: Fri, 9 Sep 2016 16:13:32 +0200 Message-ID: Subject: Re: [RFC/RFT][PATCH v2 2/7] driver core: Functional dependencies tracking support To: Mark Brown Cc: "Rafael J. Wysocki" , Linux PM list , Greg Kroah-Hartman , Alan Stern , Linux Kernel Mailing List , Tomeu Vizoso , Marek Szyprowski , Lukas Wunner , Kevin Hilman , "Luis R. Rodriguez" 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 9 September 2016 at 14:06, Mark Brown wrote: > On Fri, Sep 09, 2016 at 10:25:30AM +0200, Ulf Hansson wrote: > >> BTW, as I am mostly working on DT based platforms, I guess we would >> later on need to discuss with the DT maintainers how to describe >> device links. > > I think the expectation had been that since DT tends to get right down > to the hardware details we already have the information in there in > order to use things so the problem becomes figuring out how/when we > parse the existing bindings to tell the driver core about links. I guess what we need from a functional point of view, is to be able to first initialize all devices (device_initialize()) then add the relevant device links before we add the devices (device_add()). That seems like a piece of cake to fix. :-) Kind regards Uffe