From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH v3 0/9] PM / Domains: Fix race conditions during boot Date: Tue, 04 Nov 2014 14:32:46 +0100 Message-ID: <2649035.CrrTcoPcg3@vostro.rjw.lan> References: <1413208930-26019-1-git-send-email-ulf.hansson@linaro.org> <2024276.CFr3nVUAlA@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: Sender: linux-samsung-soc-owner@vger.kernel.org To: Geert Uytterhoeven Cc: Ulf Hansson , Kevin Hilman , Len Brown , Pavel Machek , "linux-pm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-samsung-soc , Geert Uytterhoeven , Alan Stern , Greg Kroah-Hartman , Tomasz Figa , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Philipp Zabel , Mark Brown , Wolfram Sang , Russell King , Dmitry Torokhov , Jack Dai , Jinkun List-Id: linux-pm@vger.kernel.org On Tuesday, November 04, 2014 09:20:44 AM Geert Uytterhoeven wrote: > On Tue, Nov 4, 2014 at 2:43 AM, Rafael J. Wysocki wrote: > > That is quite simple to address, though. You can register a bus type > > notifier that will power up the domain on BUS_NOTIFY_ADD_DEVICE events > > (where the target device belongs to the domain), and do that only for > > CONFIG_PM_RUNTIME unset (otherwise runtime PM should take care of this). > > Registering a bus type notifier (that will be a platform bus notifier, > right?) will affect > all platform devices, not only the on-SoC devices. Yes it will, but the "is the device in this domain?" check is trivial to do. Rafael