Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1599459
| From | Jon Hunter <jonathanh@nvidia.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains |
| Date | 2017-03-13 15:40 +0100 |
| Message-ID | <tkziH-1PZ-31@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <tfS2C-6kf-31@gated-at.bofh.it> <tkuCm-6Ws-9@gated-at.bofh.it> <tkwE9-8nq-5@gated-at.bofh.it> <tkyZl-1HR-33@gated-at.bofh.it> <tkz90-1Mu-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Geert,
On 13/03/17 14:19, Geert Uytterhoeven wrote:
> Hi Jon,
>
> On Mon, Mar 13, 2017 at 3:09 PM, Jon Hunter <jonathanh@nvidia.com> wrote:
>> On 13/03/17 11:45, Ulf Hansson wrote:
>>> +Björn
>>>
>>> On 13 March 2017 at 10:37, Jon Hunter <jonathanh@nvidia.com> wrote:
>>>> Looks like there is still some interest/needs in/for this. Any thoughts
>>>> on how we can move this forward?
>>>
>>> At the Linaro Connect last week, I was talking to Björn, Rajendra and
>>> Stephen more about these related issues.
>>>
>>> It definitely seems like we need to progress with this somehow,
>>> meaning we need a solution for being able to associate a device with
>>> more than one PM domain. In that context, I don't think genpd based on
>>> its current design, is a good fit to solve the problem.
>>>
>>> Instead I think we need something entirely new (perhaps some code can
>>> be borrowed from genpd), which is more similar to the clock/regulator
>>> framework. In other words, what you also were suggesting in a earlier
>>> reply.
>>> In this way, the driver/subsystem gains full flexibility of managing
>>> its device's PM domains, which seems like the best future-proof
>>> solution.
>>
>> I agree, I think that that would give us the most flexibility to handle
>> whatever scenario. However, I was thinking that we could still use the
>> genpd core to register pm-domains with and control. My thought was to
>> allow devices to have a bindings with multiple pm-domains ...
>>
>> dev-xyz {
>> ...
>> power-domains = <&domain-a>, <&domain-b>;
>> };
>>
>> Then in the genpd core we do having something like ...
>>
>> diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
>> index e697dec9d25b..d1ae6ddf4903 100644
>> --- a/drivers/base/power/domain.c
>> +++ b/drivers/base/power/domain.c
>> @@ -2026,6 +2026,15 @@ int genpd_dev_pm_attach(struct device *dev)
>> "samsung,power-domain", 0);
>> if (!pd_args.np)
>> return -ENOENT;
>> + } else if (ret > 1) {
>> + /*
>> + * If there are more than one PM domain defined for a device,
>> + * then these need to be manually controlled by the device
>> + * driver because the genpd core cannot bind a device with
>
> Which device driver?
> The driver for the device that belongs to multiple PM domains?
Yes, exactly. So maybe I would need to say ... "manually controlled by
the driver for *this* device ..."
Jon
--
nvpublic
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2017-03-13 10:40 +0100
Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains Ulf Hansson <ulf.hansson@linaro.org> - 2017-03-13 12:50 +0100
Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2017-03-13 15:20 +0100
Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains Geert Uytterhoeven <geert@linux-m68k.org> - 2017-03-13 15:30 +0100
Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2017-03-13 15:40 +0100
Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains Geert Uytterhoeven <geert@linux-m68k.org> - 2017-03-13 15:40 +0100
Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2017-03-13 16:00 +0100
Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains Ulf Hansson <ulf.hansson@linaro.org> - 2017-03-13 15:50 +0100
csiph-web