All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thermal: Bind cooling devices with the correct arguments
@ 2014-06-03  9:59 Punit Agrawal
  2014-06-17 10:20 ` Punit Agrawal
  2014-07-02 11:54 ` edubezval
  0 siblings, 2 replies; 5+ messages in thread
From: Punit Agrawal @ 2014-06-03  9:59 UTC (permalink / raw)
  To: Eduardo Valentin; +Cc: linux-pm, linux-kernel, Zhang Rui, Punit Agrawal

When binding cooling devices to thermal zones created from the device
tree the minimum and maximum cooling states are in the wrong order
leading to failure to bind.

Fix the order of cooling states in the call to
thermal_zone_bind_cooling_device to fix this.

Cc:Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
---
Hi Eduardo,

I am hoping this can be picked up for 3.16 as a bug fix.

Thanks,
Punit

 drivers/thermal/of-thermal.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c
index 04b1be7..97d312f 100644
--- a/drivers/thermal/of-thermal.c
+++ b/drivers/thermal/of-thermal.c
@@ -156,8 +156,8 @@ static int of_thermal_bind(struct thermal_zone_device *thermal,
 
 			ret = thermal_zone_bind_cooling_device(thermal,
 						tbp->trip_id, cdev,
-						tbp->min,
-						tbp->max);
+						tbp->max,
+						tbp->min);
 			if (ret)
 				return ret;
 		}
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] thermal: Bind cooling devices with the correct arguments
  2014-06-03  9:59 [PATCH] thermal: Bind cooling devices with the correct arguments Punit Agrawal
@ 2014-06-17 10:20 ` Punit Agrawal
  2014-06-18 22:17   ` Stephen Boyd
  2014-07-02 11:54 ` edubezval
  1 sibling, 1 reply; 5+ messages in thread
From: Punit Agrawal @ 2014-06-17 10:20 UTC (permalink / raw)
  To: Eduardo Valentin; +Cc: linux-pm, linux-kernel, Zhang Rui


Ping?

Punit Agrawal <punit.agrawal@arm.com> writes:

> When binding cooling devices to thermal zones created from the device
> tree the minimum and maximum cooling states are in the wrong order
> leading to failure to bind.
>
> Fix the order of cooling states in the call to
> thermal_zone_bind_cooling_device to fix this.
>
> Cc:Zhang Rui <rui.zhang@intel.com>
> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
> ---
> Hi Eduardo,
>
> I am hoping this can be picked up for 3.16 as a bug fix.
>
> Thanks,
> Punit
>
>  drivers/thermal/of-thermal.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c
> index 04b1be7..97d312f 100644
> --- a/drivers/thermal/of-thermal.c
> +++ b/drivers/thermal/of-thermal.c
> @@ -156,8 +156,8 @@ static int of_thermal_bind(struct thermal_zone_device *thermal,
>  
>  			ret = thermal_zone_bind_cooling_device(thermal,
>  						tbp->trip_id, cdev,
> -						tbp->min,
> -						tbp->max);
> +						tbp->max,
> +						tbp->min);
>  			if (ret)
>  				return ret;
>  		}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] thermal: Bind cooling devices with the correct arguments
  2014-06-17 10:20 ` Punit Agrawal
@ 2014-06-18 22:17   ` Stephen Boyd
  2014-06-24 10:43     ` Punit Agrawal
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Boyd @ 2014-06-18 22:17 UTC (permalink / raw)
  To: Punit Agrawal; +Cc: Eduardo Valentin, linux-pm, linux-kernel, Zhang Rui

On 06/17/14 03:20, Punit Agrawal wrote:
> Ping?
>
> Punit Agrawal <punit.agrawal@arm.com> writes:
>
>> When binding cooling devices to thermal zones created from the device
>> tree the minimum and maximum cooling states are in the wrong order
>> leading to failure to bind.
>>
>> Fix the order of cooling states in the call to
>> thermal_zone_bind_cooling_device to fix this.
>>
>> Cc:Zhang Rui <rui.zhang@intel.com>
>> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>

Ah I ran into the same problem while testing out some thermal DT stuff.

Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] thermal: Bind cooling devices with the correct arguments
  2014-06-18 22:17   ` Stephen Boyd
@ 2014-06-24 10:43     ` Punit Agrawal
  0 siblings, 0 replies; 5+ messages in thread
From: Punit Agrawal @ 2014-06-24 10:43 UTC (permalink / raw)
  To: Stephen Boyd; +Cc: Eduardo Valentin, linux-pm, linux-kernel, Zhang Rui

Stephen Boyd <sboyd@codeaurora.org> writes:

> On 06/17/14 03:20, Punit Agrawal wrote:
>> Ping?
>>
>> Punit Agrawal <punit.agrawal@arm.com> writes:
>>
>>> When binding cooling devices to thermal zones created from the device
>>> tree the minimum and maximum cooling states are in the wrong order
>>> leading to failure to bind.
>>>
>>> Fix the order of cooling states in the call to
>>> thermal_zone_bind_cooling_device to fix this.
>>>
>>> Cc:Zhang Rui <rui.zhang@intel.com>
>>> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
>
> Ah I ran into the same problem while testing out some thermal DT stuff.
>
> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>

Thanks Stephen!

Rui, can you pick this patch?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] thermal: Bind cooling devices with the correct arguments
  2014-06-03  9:59 [PATCH] thermal: Bind cooling devices with the correct arguments Punit Agrawal
  2014-06-17 10:20 ` Punit Agrawal
@ 2014-07-02 11:54 ` edubezval
  1 sibling, 0 replies; 5+ messages in thread
From: edubezval @ 2014-07-02 11:54 UTC (permalink / raw)
  To: Punit Agrawal; +Cc: linux-pm, LKML, Zhang Rui

Punit,

On Tue, Jun 3, 2014 at 5:59 AM, Punit Agrawal <punit.agrawal@arm.com> wrote:
> When binding cooling devices to thermal zones created from the device
> tree the minimum and maximum cooling states are in the wrong order
> leading to failure to bind.
>
> Fix the order of cooling states in the call to
> thermal_zone_bind_cooling_device to fix this.
>
> Cc:Zhang Rui <rui.zhang@intel.com>

Acked-by: Eduardo Valentin <edubezval@gmail.com>

Rui, to avoid further delays, can you please pick this one directly?

> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
> ---
> Hi Eduardo,
>
> I am hoping this can be picked up for 3.16 as a bug fix.
>
> Thanks,
> Punit
>
>  drivers/thermal/of-thermal.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c
> index 04b1be7..97d312f 100644
> --- a/drivers/thermal/of-thermal.c
> +++ b/drivers/thermal/of-thermal.c
> @@ -156,8 +156,8 @@ static int of_thermal_bind(struct thermal_zone_device *thermal,
>
>                         ret = thermal_zone_bind_cooling_device(thermal,
>                                                 tbp->trip_id, cdev,
> -                                               tbp->min,
> -                                               tbp->max);
> +                                               tbp->max,
> +                                               tbp->min);
>                         if (ret)
>                                 return ret;
>                 }
> --
> 1.7.10.4
>



-- 
Eduardo Bezerra Valentin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-02 11:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-03  9:59 [PATCH] thermal: Bind cooling devices with the correct arguments Punit Agrawal
2014-06-17 10:20 ` Punit Agrawal
2014-06-18 22:17   ` Stephen Boyd
2014-06-24 10:43     ` Punit Agrawal
2014-07-02 11:54 ` edubezval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.