[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABuKBeLuNdVjuy81egtfhwdLKtje_Ff8vz3EGgRy6ZcrfFX8AA@mail.gmail.com>
Date: Wed, 20 May 2015 18:06:45 +0200
From: Matthias Brugger <matthias.bgg@...il.com>
To: Sascha Hauer <s.hauer@...gutronix.de>
Cc: Daniel Kurtz <djkurtz@...omium.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"open list:OPEN FIRMWARE AND..." <devicetree@...r.kernel.org>,
Kevin Hilman <khilman@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-mediatek@...ts.infradead.org,
Sasha Hauer <kernel@...gutronix.de>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Ulf Hansson <ulf.hansson@...aro.org>
Subject: Re: [PATCH 3/5] soc: Mediatek: Add SCPSYS power domain driver
2015-05-20 16:03 GMT+02:00 Sascha Hauer <s.hauer@...gutronix.de>:
> On Tue, May 19, 2015 at 01:06:10PM +0200, Matthias Brugger wrote:
>> 2015-05-19 12:30 GMT+02:00 Sascha Hauer <s.hauer@...gutronix.de>:
>> >
>> > I'll check for errors next round. However, I cannot bail out in this
>> > case since once pm_genpd_init() is called the domain cannot be
>> > unregistered anymore.
>>
>> We should think of implementing this.
>> I had a quick look on it, and from what I understand as long as you
>> don't have any subdomains, devices and masters added, it's just
>> deleting an element from a linked list.
>
> In my error path I would have subdomains added though, so I would need
> that to be handled.
Well we could bail out, when pm_genpd_add_subdomain fails. But the
actual implementations don't do that neither at the moment.
>
>> Maybe we should split this in pm_genpd_prepare and pm_genpd_add, with
>> the last one actually adding the generic_pm_domain to gpd_list.
>>
>> This way we could also get rid of the two for loops.
>
> Well, with pm_genpd_prepare and pm_genpd_add I would still need two
> loops, one for preparing and one for adding.
>
> I'm not sure how useful it really is to be able to unregister power
> domains. For now I suggest to continue with the domains that are
> successfully registered. I'll look into it should the pm domain
> maintainers request it.
Alright.
--
motzblog.wordpress.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists