Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-23 Thread Hongbo Zhang
On 23 October 2012 02:51, Francesco Lavra wrote: > On 10/22/2012 02:02 PM, Hongbo Zhang wrote: > [...] +static irqreturn_t prcmu_low_irq_handler(int irq, void *irq_data) +{ + struct db8500_thermal_zone *pzone = irq_data; + struct db8500_thsens_platform_data *ptrips;

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-23 Thread Hongbo Zhang
On 23 October 2012 02:51, Francesco Lavra francescolavra...@gmail.com wrote: On 10/22/2012 02:02 PM, Hongbo Zhang wrote: [...] +static irqreturn_t prcmu_low_irq_handler(int irq, void *irq_data) +{ + struct db8500_thermal_zone *pzone = irq_data; + struct db8500_thsens_platform_data

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-22 Thread Francesco Lavra
On 10/22/2012 02:02 PM, Hongbo Zhang wrote: [...] >>> +static irqreturn_t prcmu_low_irq_handler(int irq, void *irq_data) >>> +{ >>> + struct db8500_thermal_zone *pzone = irq_data; >>> + struct db8500_thsens_platform_data *ptrips; >>> + unsigned long next_low, next_high; >>> +

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-22 Thread Hongbo Zhang
On 21 October 2012 23:01, Francesco Lavra wrote: > Hi Hongbo, Hi Francesco, Thanks for your review, I will accept all the comments except the ones I have some comments under them. > > On 10/16/2012 01:44 PM, hongbo.zhang wrote: >> From: "hongbo.zhang" >> >> This diver is based on the thermal

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-22 Thread Hongbo Zhang
On 21 October 2012 23:01, Francesco Lavra francescolavra...@gmail.com wrote: Hi Hongbo, Hi Francesco, Thanks for your review, I will accept all the comments except the ones I have some comments under them. On 10/16/2012 01:44 PM, hongbo.zhang wrote: From: hongbo.zhang hongbo.zh...@linaro.com

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-22 Thread Francesco Lavra
On 10/22/2012 02:02 PM, Hongbo Zhang wrote: [...] +static irqreturn_t prcmu_low_irq_handler(int irq, void *irq_data) +{ + struct db8500_thermal_zone *pzone = irq_data; + struct db8500_thsens_platform_data *ptrips; + unsigned long next_low, next_high; + unsigned int idx; + +

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-21 Thread Francesco Lavra
Hi Hongbo, On 10/16/2012 01:44 PM, hongbo.zhang wrote: > From: "hongbo.zhang" > > This diver is based on the thermal management framework in thermal_sys.c. > A thermal zone device is created with the trip points to which cooling > devices can be bound, the current cooling device is cpufreq,

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-21 Thread Francesco Lavra
Hi Hongbo, On 10/16/2012 01:44 PM, hongbo.zhang wrote: From: hongbo.zhang hongbo.zh...@linaro.com This diver is based on the thermal management framework in thermal_sys.c. A thermal zone device is created with the trip points to which cooling devices can be bound, the current cooling device

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-18 Thread viresh kumar
On Wed, Oct 17, 2012 at 8:53 PM, Viresh Kumar wrote: > On 16 October 2012 17:14, hongbo.zhang wrote: >> +static int __devinit db8500_cpufreq_cooling_probe(struct platform_device >> *pdev) >> +{ >> + struct db8500_cpufreq_cdev *cooling_devs; Hi Hongbo, I saw somebody saying this in

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-18 Thread Hongbo Zhang
On 18 October 2012 16:07, Viresh Kumar wrote: > On 18 October 2012 13:05, Hongbo Zhang wrote: >> On 17 October 2012 23:23, Viresh Kumar wrote: >>> On 16 October 2012 17:14, hongbo.zhang wrote: > +static struct db8500_trip_point db8500_trips_table[] = { + [0] = { +

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-18 Thread Viresh Kumar
On 18 October 2012 13:05, Hongbo Zhang wrote: > On 17 October 2012 23:23, Viresh Kumar wrote: >> On 16 October 2012 17:14, hongbo.zhang wrote: >>> +static struct db8500_trip_point db8500_trips_table[] = { >>> + [0] = { >>> + .temp = 7, >>> + .type =

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-18 Thread Hongbo Zhang
Viresh, thanks a lot for all of your comments. I accept them _by_default_ if no comment from me under them. On 17 October 2012 23:23, Viresh Kumar wrote: > On 16 October 2012 17:14, hongbo.zhang wrote: >> From: "hongbo.zhang" >> >> This diver is based on the thermal management framework in

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-18 Thread Hongbo Zhang
Viresh, thanks a lot for all of your comments. I accept them _by_default_ if no comment from me under them. On 17 October 2012 23:23, Viresh Kumar viresh.ku...@linaro.org wrote: On 16 October 2012 17:14, hongbo.zhang hongbo.zh...@linaro.org wrote: From: hongbo.zhang hongbo.zh...@linaro.com

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-18 Thread Viresh Kumar
On 18 October 2012 13:05, Hongbo Zhang hongbo.zh...@linaro.org wrote: On 17 October 2012 23:23, Viresh Kumar viresh.ku...@linaro.org wrote: On 16 October 2012 17:14, hongbo.zhang hongbo.zh...@linaro.org wrote: +static struct db8500_trip_point db8500_trips_table[] = { + [0] = { +

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-18 Thread Hongbo Zhang
On 18 October 2012 16:07, Viresh Kumar viresh.ku...@linaro.org wrote: On 18 October 2012 13:05, Hongbo Zhang hongbo.zh...@linaro.org wrote: On 17 October 2012 23:23, Viresh Kumar viresh.ku...@linaro.org wrote: On 16 October 2012 17:14, hongbo.zhang hongbo.zh...@linaro.org wrote: +static

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-18 Thread viresh kumar
On Wed, Oct 17, 2012 at 8:53 PM, Viresh Kumar viresh.ku...@linaro.org wrote: On 16 October 2012 17:14, hongbo.zhang hongbo.zh...@linaro.org wrote: +static int __devinit db8500_cpufreq_cooling_probe(struct platform_device *pdev) +{ + struct db8500_cpufreq_cdev *cooling_devs; Hi

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-17 Thread Viresh Kumar
On 17 October 2012 22:28, Joe Perches wrote: >> > +#include >> > +#include >> > +#include >> > +#include >> > +#include >> > +#include >> >> should be in alphabetical order > > There's no agreed kernel convention here. > Some prefer christmas tree (shortest to longest length) :) I have

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-17 Thread Joe Perches
On Wed, 2012-10-17 at 20:53 +0530, Viresh Kumar wrote: > On 16 October 2012 17:14, hongbo.zhang wrote: [] > > diff --git a/drivers/thermal/db8500_cpufreq_cooling.c > > b/drivers/thermal/db8500_cpufreq_cooling.c [] > > +#include > > +#include > > +#include > > +#include > > +#include > >

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-17 Thread Viresh Kumar
On 16 October 2012 17:14, hongbo.zhang wrote: > From: "hongbo.zhang" > > This diver is based on the thermal management framework in thermal_sys.c. > A thermal zone device is created with the trip points to which cooling > devices can be bound, the current cooling device is cpufreq, e.g. CPU >

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-17 Thread Viresh Kumar
On 16 October 2012 17:14, hongbo.zhang hongbo.zh...@linaro.org wrote: From: hongbo.zhang hongbo.zh...@linaro.com This diver is based on the thermal management framework in thermal_sys.c. A thermal zone device is created with the trip points to which cooling devices can be bound, the current

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-17 Thread Joe Perches
On Wed, 2012-10-17 at 20:53 +0530, Viresh Kumar wrote: On 16 October 2012 17:14, hongbo.zhang hongbo.zh...@linaro.org wrote: [] diff --git a/drivers/thermal/db8500_cpufreq_cooling.c b/drivers/thermal/db8500_cpufreq_cooling.c [] +#include linux/slab.h +#include linux/module.h +#include

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-17 Thread Viresh Kumar
On 17 October 2012 22:28, Joe Perches j...@perches.com wrote: +#include linux/slab.h +#include linux/module.h +#include linux/platform_device.h +#include linux/cpufreq.h +#include linux/cpu_cooling.h +#include linux/err.h should be in alphabetical order There's no agreed kernel

[PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-16 Thread hongbo.zhang
From: "hongbo.zhang" This diver is based on the thermal management framework in thermal_sys.c. A thermal zone device is created with the trip points to which cooling devices can be bound, the current cooling device is cpufreq, e.g. CPU frequency is clipped down to cool the CPU, and other cooling

[PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-16 Thread hongbo.zhang
From: hongbo.zhang hongbo.zh...@linaro.com This diver is based on the thermal management framework in thermal_sys.c. A thermal zone device is created with the trip points to which cooling devices can be bound, the current cooling device is cpufreq, e.g. CPU frequency is clipped down to cool the