diff mbox

[v2,0/3] firmware: scpi: add device power domain support

Message ID 1466082894.20208.1.camel@linaro.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jon Medhurst (Tixy) June 16, 2016, 1:14 p.m. UTC
On Thu, 2016-06-16 at 11:37 +0100, Sudeep Holla wrote:
> This series add support for SCPI based device device power state
> management using genpd.
> 
> Regards,
> Sudeep
> 
> v1[1]->v2:
> 	- Fixed the endianness handling in scpi_device_get_power_state
> 	  as spotted by Tixy
> 	- Renamed scpi_pd.c to scpi_pm_domain.c as suggested by Ulf

You seemed to also have made some changes to the contents of the file,
is that deliberate? This is the diff...

 static int scpi_pd_power_on(struct generic_pm_domain *domain)




--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Sudeep Holla June 16, 2016, 1:26 p.m. UTC | #1
On 16/06/16 14:14, Jon Medhurst (Tixy) wrote:
> On Thu, 2016-06-16 at 11:37 +0100, Sudeep Holla wrote:
>> This series add support for SCPI based device device power state
>> management using genpd.
>>
>> Regards,
>> Sudeep
>>
>> v1[1]->v2:
>> 	- Fixed the endianness handling in scpi_device_get_power_state
>> 	  as spotted by Tixy
>> 	- Renamed scpi_pd.c to scpi_pm_domain.c as suggested by Ulf
>
> You seemed to also have made some changes to the contents of the file,
> is that deliberate? This is the diff...
>

name array was accidental. I added it as I was not sure if I want to
make it dynamic, just found I might be hitting the max while testing and
added it.

The other change was something that I found recently after I tried to
get rid of juno coresight primecell override after I realized AMBA
framework should be able to cope up with power domains. I will reply
on that thread. Sorry for missing out this in changelog. I assume in my
previous testings only the paths that ignored the return were executed.
Ulf Hansson June 17, 2016, 8:56 a.m. UTC | #2
On 16 June 2016 at 15:26, Sudeep Holla <sudeep.holla@arm.com> wrote:
>
>
> On 16/06/16 14:14, Jon Medhurst (Tixy) wrote:
>>
>> On Thu, 2016-06-16 at 11:37 +0100, Sudeep Holla wrote:
>>>
>>> This series add support for SCPI based device device power state
>>> management using genpd.
>>>
>>> Regards,
>>> Sudeep
>>>
>>> v1[1]->v2:
>>>         - Fixed the endianness handling in scpi_device_get_power_state
>>>           as spotted by Tixy
>>>         - Renamed scpi_pd.c to scpi_pm_domain.c as suggested by Ulf
>>
>>
>> You seemed to also have made some changes to the contents of the file,
>> is that deliberate? This is the diff...
>>
>
> name array was accidental. I added it as I was not sure if I want to
> make it dynamic, just found I might be hitting the max while testing and
> added it.
>
> The other change was something that I found recently after I tried to
> get rid of juno coresight primecell override after I realized AMBA
> framework should be able to cope up with power domains. I will reply
> on that thread. Sorry for missing out this in changelog. I assume in my
> previous testings only the paths that ignored the return were executed.
>
> --
> Regards,
> Sudeep

For the series,

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>

Kind regards
Uffe
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/drivers/firmware/scpi_pm_domain.c
+++ b/drivers/firmware/scpi_pd.c
@@ -27,7 +27,7 @@  struct scpi_pm_domain {
        struct generic_pm_domain genpd;
        struct scpi_ops *ops;
        u32 domain;
-       char name[20];
+       char name[30];
 };
 
 enum scpi_power_domain_state {
@@ -51,7 +51,7 @@  static int scpi_pd_power(struct scpi_pm_domain *pd,
bool power_on)
        if (ret)
                return ret;
 
-       return (state == pd->ops->device_get_power_state(pd->domain));
+       return !(state == pd->ops->device_get_power_state(pd->domain));
 }