From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Figa Subject: Re: [PATCH v2 01/11] base: power: Add generic OF-based power domain look-up Date: Wed, 05 Mar 2014 12:53:16 +0100 Message-ID: <5317102C.7000007@gmail.com> References: <1393862536-9842-1-git-send-email-tomasz.figa@gmail.com> <1393862536-9842-2-git-send-email-tomasz.figa@gmail.com> <20140304182310.GA9985@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140304182310.GA9985@codeaurora.org> Sender: linux-pm-owner@vger.kernel.org To: Stephen Boyd Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Russell King , Kukjin Kim , Kumar Gala , Ian Campbell , Mark Rutland , Pawel Moll , Rob Herring , Bartlomiej Zolnierkiewicz , Stephen Warren , Tomasz Figa , Mark Brown , Lorenzo Pieralisi , Ulf Hansson , Marek Szyprowski List-Id: devicetree@vger.kernel.org On 04.03.2014 19:23, Stephen Boyd wrote: > On 03/03, Tomasz Figa wrote: >> diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c >> index dc127e5..006b455 100644 >> --- a/drivers/base/power/domain.c >> +++ b/drivers/base/power/domain.c >> @@ -3,12 +3,16 @@ >> * >> * Copyright (C) 2011 Rafael J. Wysocki , Renesas Electronics Corp. >> * >> + * Support for Device Tree based power domain providers: >> + * Copyright (C) 2014 Tomasz Figa >> + * >> * This file is released under the GPLv2. >> */ >> >> #include >> #include >> #include >> +#include > > Is this still needed? > Probably not. >> #include >> #include >> #include > [...] >> + >> +/* >> + * DEVICE<->DOMAIN BINDING USING DEVICE TREE LOOK-UP >> + * >> + * The code below registers a notifier for platform bus devices' >> + * BUS_NOTIFY_BIND_DRIVER events and tries to attach devices to their power >> + * domains by looking them up using Device Tree. >> + * >> + * Similarly in BUS_NOTIFY_UNBOUND_DRIVER the device is detached from its >> + * domain, since it no longer supports runtime PM without any driver bound >> + * to it. > > This looks outdated. > Oops, missed this one. Thanks for pointing out. Best regards, Tomasz