[PATCH 02/11] thermal: update driver license

2013-03-22 Thread Eduardo Valentin
As per the comment at the top of this file, this is a GPLv2 driver. This patch updates the driver license accordingly. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/thermal/thermal_sys.c b

[PATCH 03/11] thermal: rename notify_thermal_framework to thermal_notify_framework

2013-03-22 Thread Eduardo Valentin
To follow the prefix names used by the thermal exported functions, this patch renames notify_thermal_framework to thermal_notify_framework. Signed-off-by: Eduardo Valentin --- Documentation/thermal/sysfs-api.txt |2 +- drivers/thermal/thermal_sys.c |6 +++--- include/linux

[PATCH 04/11] thermal: rename get_thermal_instance to thermal_instance_get

2013-03-22 Thread Eduardo Valentin
To follow the prefix names used by the thermal exported functions, this patch renames get_thermal_instance to thermal_instance_get. Signed-off-by: Eduardo Valentin --- Documentation/thermal/sysfs-api.txt |2 +- drivers/thermal/fair_share.c|2 +- drivers/thermal/thermal_sys.c

[PATCH 05/11] thermal: rename get_tz_trend to thermal_zone_trend_get

2013-03-22 Thread Eduardo Valentin
To follow the prefix names used by the thermal exported functions, this patch renames get_tz_trend to thermal_zone_trend_get. Signed-off-by: Eduardo Valentin --- Documentation/thermal/sysfs-api.txt |2 +- drivers/thermal/step_wise.c |2 +- drivers/thermal/thermal_sys.c

[PATCH 06/11] thermal: use EXPORT_SYMBOL_GPL

2013-03-22 Thread Eduardo Valentin
Restrict usage of GPL modules. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 242c82a..602596e 100644 --- a

[PATCH 07/11] thermal: update kernel-doc for thermal_zone_bind_cooling_device

2013-03-22 Thread Eduardo Valentin
This patch updates the documentation for thermal_zone_bind_cooling_device and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a

[PATCH 08/11] thermal: update kernel-doc for thermal_zone_unbind_cooling_device

2013-03-22 Thread Eduardo Valentin
This patch updates the documentation for thermal_zone_unbind_cooling_device and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 09/11] thermal: update kernel-doc for thermal_cooling_device_register

2013-03-22 Thread Eduardo Valentin
This patch updates the documentation for thermal_cooling_device_register and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 10/11] thermal: update kernel-doc for create_trip_attrs

2013-03-22 Thread Eduardo Valentin
This patch updates the documentation for create_trip_attrs and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/thermal/thermal_sys.c

[PATCH 11/11] thermal: update kernel-doc for thermal_zone_device_register

2013-03-22 Thread Eduardo Valentin
This patch updates the documentation for thermal_zone_device_register and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/thermal

[PATCH 0/2] thermal: lookup temperature

2013-03-22 Thread Eduardo Valentin
hello Rui, Here is a temperature lookup helper function. The usage of it is exemplified on patch 02. Please review. This may overlap with Durgas recent work. But I am resending as no one has commented my RFC. Cheers, Eduardo Valentin (2): thermal: introduce thermal_zone_lookup_temperature

[PATCH 1/2] thermal: introduce thermal_zone_lookup_temperature helper function

2013-03-22 Thread Eduardo Valentin
code. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c | 32 include/linux/thermal.h |1 + 2 files changed, 33 insertions(+), 0 deletions(-) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 5bd95d4

[PATCH 2/2] staging: ti-soc-thermal: remove external heat while extrapolating hotspot

2013-03-22 Thread Eduardo Valentin
For boards that provide a PCB sensor close to SoC junction temperature, it is possible to remove the cumulative heat reported by the SoC temperature sensor. This patch changes the extrapolation computation to consider an external sensor in the extrapolation equations. Signed-off-by: Eduardo

Re: [PATCH 2/2] staging: ti-soc-thermal: remove external heat while extrapolating hotspot

2013-03-25 Thread Eduardo Valentin
On 25-03-2013 02:23, Zhang Rui wrote: On Fri, 2013-03-22 at 17:13 -0400, Eduardo Valentin wrote: For boards that provide a PCB sensor close to SoC junction temperature, it is possible to remove the cumulative heat reported by the SoC temperature sensor. This patch changes the extrapolation

Re: [PATCH 1/2] thermal: introduce thermal_zone_lookup_temperature helper function

2013-03-25 Thread Eduardo Valentin
On 25-03-2013 02:26, Zhang Rui wrote: On Mon, 2013-03-25 at 00:20 -0600, R, Durgadoss wrote: -Original Message- From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- ow...@vger.kernel.org] On Behalf Of Zhang Rui Sent: Monday, March 25, 2013 11:41 AM To: Eduardo Valentin Cc: linux

Re: [PATCHv2 09/12] staging: ti-soc-thermal: fix several kernel-doc warnings and error

2013-03-25 Thread Eduardo Valentin
On 25-03-2013 14:22, Greg KH wrote: On Tue, Mar 19, 2013 at 10:54:25AM -0400, Eduardo Valentin wrote: This patch updates the documentation to remove all warnings and errors reported by scripts/kernel-doc. Most are missing arguments due to wrong format. Cc: Nishanth Menon Signed-off-by

Re: [RFC PATCH 2/4] thermal: introduce device tree parser

2013-07-15 Thread Eduardo Valentin
On 10-07-2013 02:48, Wei Ni wrote: > On 07/09/2013 10:00 PM, Eduardo Valentin wrote: >> In order to be able to build thermal policies >> based on generic sensors, like I2C device, that >> can be places in different points on different boards, >> there is a need

Re: [RFC PATCH 2/4] thermal: introduce device tree parser

2013-07-15 Thread Eduardo Valentin
On 10-07-2013 11:16, Stephen Warren wrote: > On 07/10/2013 12:48 AM, Wei Ni wrote: >> On 07/09/2013 10:00 PM, Eduardo Valentin wrote: >>> In order to be able to build thermal policies >>> based on generic sensors, like I2C device, that >>> can be places in

Re: [RFC PATCH 2/4] thermal: introduce device tree parser

2013-07-15 Thread Eduardo Valentin
On 15-07-2013 13:03, R, Durgadoss wrote: >> -Original Message- >> From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- >> ow...@vger.kernel.org] On Behalf Of Eduardo Valentin >> Sent: Monday, July 15, 2013 5:25 PM >> To: Wei Ni >> Cc: Eduardo V

[PATCH 3/8] cpufreq: cpufreq-cpu0: add dt node parsing on cooling need

2013-07-17 Thread Eduardo Valentin
ts.ozlabs.org Signed-off-by: Eduardo Valentin --- .../devicetree/bindings/cpufreq/cpufreq-cpu0.txt | 3 ++ .../devicetree/bindings/thermal/thermal.txt| 34 ++ drivers/cpufreq/cpufreq-cpu0.c | 8 + 3 files changed, 45 insertions(+) diff -

[PATCH 5/9] thermal: introduce device tree parser

2013-07-17 Thread Eduardo Valentin
: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- .../devicetree/bindings/thermal/thermal.txt| 133 ++ drivers/thermal/Kconfig| 13 + drivers/thermal/Makefile | 1 + drivers/thermal/thermal_dt.c

[PATCH 8/9] hwmon: lm75: expose to thermal fw via DT nodes

2013-07-17 Thread Eduardo Valentin
behavior will be the same. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/hwmon/lm75.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon

[PATCH 9/9] hwmon: tmp102: expose to thermal fw via DT nodes

2013-07-17 Thread Eduardo Valentin
behavior will be the same. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/hwmon/tmp102.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/hwmon/tmp102.c b/drivers

[PATCH 6/8] arm: dts: flag omap4430 with needs-cooling for cpu node

2013-07-17 Thread Eduardo Valentin
c: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/ar

Re: [RFC PATCH 2/4] thermal: introduce device tree parser

2013-07-17 Thread Eduardo Valentin
On 09-07-2013 12:14, R, Durgadoss wrote: > Hi Eduardo, > >> -Original Message----- >> From: Eduardo Valentin [mailto:eduardo.valen...@ti.com] >> Sent: Tuesday, July 09, 2013 7:30 PM >> To: linux...@vger.kernel.org; R, Durgadoss; amit.dan...@samsung.com >&

[PATCH 1/9] cpufreq: cpufreq-cpu0: add dt node parsing for 'needs-cooling'

2013-07-17 Thread Eduardo Valentin
rences and is composed by the cpufreq cooling device. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Grant Likely Cc: Rob Herring Cc: cpuf...@vger.kernel.org Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Signed-off-

Re: [PATCH 0/9] thermal: introduce DT thermal zone build

2013-07-17 Thread Eduardo Valentin
Hi, On 17-07-2013 11:02, Eduardo Valentin wrote: > Hello all, > Looks like I sent duplicated series. Please consider the series containing 9 patches. I will resend with proper set. > As you noticed, I am working in a way to represent thermal data > using device tree [1]. Essen

[PATCH 8/8] hwmon: tmp102: expose to thermal fw via DT nodes

2013-07-17 Thread Eduardo Valentin
behavior will be the same. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/hwmon/tmp102.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/hwmon/tmp102.c b/drivers

[PATCH 4/8] thermal: ti-soc-thermal: use thermal DT infrastructure

2013-07-17 Thread Eduardo Valentin
device. Loading the thermal data from DT, the driver assumes someone else will add the cpufreq cooling device, like the cpufreq driver. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/ti-soc-thermal/ti-thermal

[PATCH 1/8] thermal: thermal_core: allow binding with limits on bind_params

2013-07-17 Thread Eduardo Valentin
for each trip point inside a bind_param. The way the binding is performed is also changed so that it uses the new data structure. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- Documentation/thermal/sysfs-api.txt | 7

[PATCH 7/9] arm: dts: add omap4430 thermal data

2013-07-17 Thread Eduardo Valentin
nel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/arch/ar

[PATCH 6/9] thermal: ti-soc-thermal: use thermal DT infrastructure

2013-07-17 Thread Eduardo Valentin
device. Loading the thermal data from DT, the driver assumes someone else will add the cpufreq cooling device, like the cpufreq driver. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/ti-soc-thermal/ti-thermal

[PATCH 2/9] thermal: hwmon: move hwmon support to single file

2013-07-17 Thread Eduardo Valentin
thermal locking. Also, some minor changes in the code were required, as recommended by checkpatch.pl. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/Kconfig | 9 ++ drivers/thermal/Makefile| 3

[PATCH 0/9] thermal: introduce DT thermal zone build

2013-07-17 Thread Eduardo Valentin
p4430 (3.11-rc1 with minor changes for getting cpufreq working) BR, Eduardo Valentin (9): cpufreq: cpufreq-cpu0: add dt node parsing for 'needs-cooling' thermal: hwmon: move hwmon support to single file thermal: thermal_core: allow binding with limits on bind_params arm: dts

[PATCH 5/8] arm: dts: add omap4430 thermal data

2013-07-17 Thread Eduardo Valentin
nel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/arch/ar

[PATCH 4/9] arm: dts: flag omap4430 with needs-cooling for cpu node

2013-07-17 Thread Eduardo Valentin
c: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/ar

[RESEND PATCH V1 5/9] thermal: introduce device tree parser

2013-07-17 Thread Eduardo Valentin
: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- .../devicetree/bindings/thermal/thermal.txt| 133 ++ drivers/thermal/Kconfig| 13 + drivers/thermal/Makefile | 1 + drivers/thermal/thermal_dt.c

[RESEND PATCH V1 6/9] thermal: ti-soc-thermal: use thermal DT infrastructure

2013-07-17 Thread Eduardo Valentin
device. Loading the thermal data from DT, the driver assumes someone else will add the cpufreq cooling device, like the cpufreq driver. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/ti-soc-thermal/ti-thermal

[RESEND PATCH V1 8/9] hwmon: lm75: expose to thermal fw via DT nodes

2013-07-17 Thread Eduardo Valentin
behavior will be the same. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/hwmon/lm75.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon

[RESEND PATCH V1 1/9] cpufreq: cpufreq-cpu0: add dt node parsing for 'needs-cooling'

2013-07-17 Thread Eduardo Valentin
rences and is composed by the cpufreq cooling device. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Grant Likely Cc: Rob Herring Cc: cpuf...@vger.kernel.org Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Signed-off-

[RESEND PATCH V1 4/9] arm: dts: flag omap4430 with needs-cooling for cpu node

2013-07-17 Thread Eduardo Valentin
c: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/ar

[RESEND PATCH V1 7/9] arm: dts: add omap4430 thermal data

2013-07-17 Thread Eduardo Valentin
nel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/arch/ar

[RESEND PATCH V1 9/9] hwmon: tmp102: expose to thermal fw via DT nodes

2013-07-17 Thread Eduardo Valentin
behavior will be the same. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/hwmon/tmp102.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/hwmon/tmp102.c b/drivers

[RESEND PATCH V1 3/9] thermal: thermal_core: allow binding with limits on bind_params

2013-07-17 Thread Eduardo Valentin
for each trip point inside a bind_param. The way the binding is performed is also changed so that it uses the new data structure. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- Documentation/thermal/sysfs-api.txt | 7

[RESEND PATCH V1 0/9] thermal: introduce DT thermal zone build

2013-07-17 Thread Eduardo Valentin
p4430 (3.11-rc1 with minor changes for getting cpufreq working) BR, Eduardo Valentin (9): cpufreq: cpufreq-cpu0: add dt node parsing for 'needs-cooling' thermal: hwmon: move hwmon support to single file thermal: thermal_core: allow binding with limits on bind_params arm: dts

[PATCH 1/8] thermal: hwmon: move hwmon support to single file

2013-07-17 Thread Eduardo Valentin
thermal locking. Also, some minor changes in the code were required, as recommended by checkpatch.pl. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/Kconfig | 9 ++ drivers/thermal/Makefile| 3

[RESEND PATCH V1 2/9] thermal: hwmon: move hwmon support to single file

2013-07-17 Thread Eduardo Valentin
thermal locking. Also, some minor changes in the code were required, as recommended by checkpatch.pl. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/Kconfig | 9 ++ drivers/thermal/Makefile| 3

[PATCH 3/9] thermal: thermal_core: allow binding with limits on bind_params

2013-07-17 Thread Eduardo Valentin
for each trip point inside a bind_param. The way the binding is performed is also changed so that it uses the new data structure. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- Documentation/thermal/sysfs-api.txt | 7

[PATCH 2/8] thermal: introduce device tree parser

2013-07-17 Thread Eduardo Valentin
: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- .../devicetree/bindings/thermal/thermal.txt| 99 + drivers/thermal/Kconfig| 13 + drivers/thermal/Makefile | 1 + drivers/thermal/thermal_dt.c

[PATCH 7/8] hwmon: lm75: expose to thermal fw via DT nodes

2013-07-17 Thread Eduardo Valentin
behavior will be the same. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/hwmon/lm75.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon

[PATCH 0/5] drivers: thermal: several fixes

2013-08-23 Thread Eduardo Valentin
compiled tested on other drivers. I have done a runtime test on OMAP and DRA devices though. Please feel free to perform your own test and report issues if you find some. All best, Eduardo Valentin (5): thermal: hwmon: move hwmon support to single file drivers: thermal: parent virtual hwmon with

[PATCH 1/5] thermal: hwmon: move hwmon support to single file

2013-08-23 Thread Eduardo Valentin
thermal locking. Also, some minor changes in the code were required, as recommended by checkpatch.pl. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Acked-by: Durgadoss R Signed-off-by: Eduardo Valentin --- drivers/thermal/Kconfig | 9 ++ drivers/thermal

[PATCH 5/5] drivers: thermal: add check when unregistering cpu cooling

2013-08-23 Thread Eduardo Valentin
This patch avoids NULL pointer accesses while unregistering cpu cooling devices, in case a NULL pointer is received. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/cpu_cooling.c | 6 +- 1 file changed, 5

[PATCH 4/5] thermal: thermal_core: allow binding with limits on bind_params

2013-08-23 Thread Eduardo Valentin
for each trip point inside a bind_param. The way the binding is performed is also changed so that it uses the new data structure. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- Documentation/thermal/sysfs-api.txt | 7

[PATCH 2/5] drivers: thermal: parent virtual hwmon with thermal zone

2013-08-23 Thread Eduardo Valentin
ernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index fdb0719..eeef0e2 100644 --- a/drivers/thermal/thermal_hwmon.c

[PATCH 3/5] drivers: thermal: make usage of CONFIG_THERMAL_HWMON optional

2013-08-23 Thread Eduardo Valentin
: linux...@vger.kernel.org Cc: linux-samsung-...@vger.kernel.org Cc: Matthew Garrett Cc: Peter Feuerer Cc: platform-driver-...@vger.kernel.org Cc: "Rafael J. Wysocki" Cc: Rob Herring Cc: Zhang Rui Suggested-by: Wei Ni Signed-off-by: Eduardo Valentin --- Documentation/thermal/sys

[RFC PATCH 03/14] hwmon: lm75: expose to thermal fw via DT nodes

2013-08-23 Thread Eduardo Valentin
behavior will be the same. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/hwmon/lm75.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/hwmon/lm75.c b/drivers

[RFC PATCH 01/14] cpufreq: cpufreq-cpu0: add dt node parsing for 'cooling-zones'

2013-08-23 Thread Eduardo Valentin
zone that references and is composed by the cpufreq cooling device. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Grant Likely Cc: Rob Herring Cc: cpuf...@vger.kernel.org Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Signed-off-

[RFC PATCH 00/14] RFCv2: device thermal limits represented in device tree nodes

2013-08-23 Thread Eduardo Valentin
://lkml.org/lkml/2013/8/23/572 In the above link you will find also the request to have a flag to determine if virtual hwmon device will be created, based on thermal device. All best, Eduardo Valentin (14): cpufreq: cpufreq-cpu0: add dt node parsing for 'cooling-zones' drivers: thermal:

[RFC PATCH 04/14] hwmon: tmp102: expose to thermal fw via DT nodes

2013-08-23 Thread Eduardo Valentin
behavior will be the same. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/hwmon/tmp102.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/hwmon/tmp102.c b/drivers

[RFC PATCH 02/14] drivers: thermal: introduce device tree parser

2013-08-23 Thread Eduardo Valentin
: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- .../devicetree/bindings/thermal/thermal.txt| 160 +++ drivers/thermal/Kconfig| 13 + drivers/thermal/Makefile | 1 + drivers/thermal/thermal_dt.c

[RFC PATCH 08/14] arm: dts: add omap4460 thermal data

2013-08-23 Thread Eduardo Valentin
rk Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap4460.dtsi | 5 + 1 file changed, 5

[RFC PATCH 10/14] arm: dts: point to cooling-zones on omap4460 cpu node

2013-08-23 Thread Eduardo Valentin
Cc: Mark Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap4460.dtsi | 1 + 1 file

[RFC PATCH 07/14] arm: dts: add omap4430 thermal data

2013-08-23 Thread Eduardo Valentin
nel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/ar

[RFC PATCH 05/14] thermal: ti-soc-thermal: use thermal DT infrastructure

2013-08-23 Thread Eduardo Valentin
device. Loading the thermal data from DT, the driver assumes someone else will add the cpufreq cooling device, like the cpufreq driver. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/ti-soc-thermal/ti-thermal

[RFC PATCH 09/14] arm: dts: point to cooling-zones on omap4430 cpu node

2013-08-23 Thread Eduardo Valentin
c: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/ar

[RFC PATCH 14/14] arm: dts: point to cooling-zones on omap5 cpu node

2013-08-23 Thread Eduardo Valentin
Cc: Mark Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap5.dtsi | 1 + 1 file changed, 1

[RFC PATCH 11/14] arm: dts: add omap5 GPU thermal data

2013-08-23 Thread Eduardo Valentin
rk Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap5-gpu-thermal

[RFC PATCH 13/14] arm: dts: add omap5 thermal data

2013-08-23 Thread Eduardo Valentin
n Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap

[RFC PATCH 12/14] arm: dts: add omap5 CORE thermal data

2013-08-23 Thread Eduardo Valentin
rk Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap5-core-thermal

[RFC PATCH 06/14] arm: dts: add omap4 CPU thermal data

2013-08-23 Thread Eduardo Valentin
file mode 100644 index 000..d74c565 --- /dev/null +++ b/arch/arm/boot/dts/omap4-cpu-thermal.dtsi @@ -0,0 +1,40 @@ + +/* + * Device Tree Source for OMAP4/5 SoC CPU thermal + * + * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ + * Contact: Eduardo Valentin + * + * This file i

Re: RFC: device thermal limits represented in device tree nodes

2013-08-07 Thread Eduardo Valentin
k. > > On Fri, 2013-07-26 at 20:55 +0100, Eduardo Valentin wrote: >> On 25-07-2013 13:33, Pawel Moll wrote: >>> On Thu, 2013-07-25 at 18:20 +0100, Eduardo Valentin wrote: >>>>>> thermal_zone { >>>>>> type = "CPU"; >>>

Re: [RESEND PATCH V1 8/9] hwmon: lm75: expose to thermal fw via DT nodes

2013-07-18 Thread Eduardo Valentin
Hi Wei, On 18-07-2013 01:33, Wei Ni wrote: > On 07/17/2013 11:17 PM, Eduardo Valentin wrote: >> This patch adds to lm75 temperature sensor the possibility >> to expose itself as thermal zone device, registered on the >> thermal framework. >> >> The thermal zo

Re: [lm-sensors] [RESEND PATCH V1 0/9] thermal: introduce DT thermal zone build

2013-07-18 Thread Eduardo Valentin
Hello Guenter, On 17-07-2013 18:09, Guenter Roeck wrote: > On Wed, Jul 17, 2013 at 11:17:19AM -0400, Eduardo Valentin wrote: >> Hello all, >> >> As you noticed, I am working in a way to represent thermal data >> using device tree [1]. Essentially, this should be a way

Re: [lm-sensors] [RESEND PATCH V1 0/9] thermal: introduce DT thermal zone build

2013-07-19 Thread Eduardo Valentin
On 18-07-2013 17:21, Guenter Roeck wrote: > On Thu, Jul 18, 2013 at 11:18:05AM -0600, Stephen Warren wrote: >> On 07/18/2013 07:53 AM, Eduardo Valentin wrote: >>> Hello Guenter, >>> >>> On 17-07-2013 18:09, Guenter Roeck wrote: >>>> On Wed, Ju

Re: [lm-sensors] [RESEND PATCH V1 0/9] thermal: introduce DT thermal zone build

2013-07-19 Thread Eduardo Valentin
On 18-07-2013 17:11, Guenter Roeck wrote: > On Thu, Jul 18, 2013 at 09:53:05AM -0400, Eduardo Valentin wrote: >> Hello Guenter, >> >> On 17-07-2013 18:09, Guenter Roeck wrote: >>> On Wed, Jul 17, 2013 at 11:17:19AM -0400, Eduardo Valentin wrote: >>>>

Re: [lm-sensors] [RESEND PATCH V1 0/9] thermal: introduce DT thermal zone build

2013-07-19 Thread Eduardo Valentin
On 19-07-2013 14:45, Stephen Warren wrote: > On 07/19/2013 07:38 AM, Eduardo Valentin wrote: >> On 18-07-2013 17:11, Guenter Roeck wrote: >>> On Thu, Jul 18, 2013 at 09:53:05AM -0400, Eduardo Valentin >>> wrote: >>>> Hello Guenter, >>>> >>

RFC: device thermal limits represented in device tree nodes

2013-07-22 Thread Eduardo Valentin
lks (Guenter) seam to be strongly against this series, as there is a fear that this may introduce a mis-usage of DT. I still believe this is needed for hardware description, and thus not a infringement on DT purposes. Please let me know your thoughts on this topic and apologize me if my previ

RFC: device thermal limits represented in device tree nodes

2013-07-22 Thread Eduardo Valentin
I still believe this is needed for hardware description, and thus not a infringement on DT purposes. Please let me know your thoughts on this topic and apologize me if my previous messages on this topic did not reach you (hope they reach now). All best, Eduardo Valentin [0] - https://lkml.org/lkm

Re: RFC: device thermal limits represented in device tree nodes

2013-07-24 Thread Eduardo Valentin
On 23-07-2013 21:44, Stephen Warren wrote: > On 07/22/2013 07:25 AM, Eduardo Valentin wrote: >> Hello Grant and Rob, >> >> (Resending, as I got a message saying: >> : Recipient address rejected: >> User has moved to devicetree at vger.kernel.org) >> >>

Re: RFC: device thermal limits represented in device tree nodes

2013-07-24 Thread Eduardo Valentin
On 24-07-2013 06:45, Mark Rutland wrote: > On Wed, Jul 24, 2013 at 02:44:38AM +0100, Stephen Warren wrote: >> On 07/22/2013 07:25 AM, Eduardo Valentin wrote: >>> Hello Grant and Rob, >>> >>> (Resending, as I got a message saying: >>> : Recipient addre

Re: RFC: device thermal limits represented in device tree nodes

2013-07-24 Thread Eduardo Valentin
Pawel, On 24-07-2013 07:19, Pawel Moll wrote: > Greeting, > > Funnily enough I had this discussion couple a months ago and made my > mind back then :-) > :-) >> On 07/22/2013 07:25 AM, Eduardo Valentin wrote: >>> representing in device tree would not >>>

Re: RFC: device thermal limits represented in device tree nodes

2013-07-25 Thread Eduardo Valentin
On 25-07-2013 12:15, Pawel Moll wrote: > On Wed, 2013-07-24 at 16:04 +0100, Eduardo Valentin wrote: >>> 1. As you have pointed out, the thermal limits are related to the >>> *device being monitored*, not the sensor itself. >>> >> Yeah, thinking of it now

Re: RFC: device thermal limits represented in device tree nodes

2013-07-25 Thread Eduardo Valentin
wanted to say was: ... so the zone would still be embedded in a > device node :-) > ahh ok.. I see. > Pawel > > > > -- You have got to be excited about what you are doing. (L. Lamport) Eduardo Valentin signature.asc Description: OpenPGP digital signature

Re: [RESEND PATCH V1 1/9] cpufreq: cpufreq-cpu0: add dt node parsing for 'needs-cooling'

2013-07-26 Thread Eduardo Valentin
On 25-07-2013 19:28, Rafael J. Wysocki wrote: > On Wednesday, July 17, 2013 11:17:20 AM Eduardo Valentin wrote: >> This patch changes the cpufreq-cpu0 driver to consider if >> a cpu needs cooling (with cpufreq). In case the cooling is needed, >> it can be flagged at the cpu0 d

Re: [PATCH 27/27] thermal: ti-bandgap: cleanup resource allocation

2013-07-26 Thread Eduardo Valentin
devm_ioremap_resource(&pdev->dev, res); > + if (IS_ERR(bgp->base)) > + return bgp->base; > > if (TI_BANDGAP_HAS(bgp, TSHUT)) { > bgp->tshut_gpio = of_get_gpio(node, 0); > -- You have got to be excited about what you are doing. (L. Lamport) Eduardo Valentin signature.asc Description: OpenPGP digital signature

Re: RFC: device thermal limits represented in device tree nodes

2013-07-26 Thread Eduardo Valentin
On 25-07-2013 13:33, Pawel Moll wrote: > On Thu, 2013-07-25 at 18:20 +0100, Eduardo Valentin wrote: >>>>thermal_zone { >>>>type = "CPU"; >>> >>> So what does this exactly mean? What is so special about CPU? What other >>

Re: [PATCH V4 00/30] thermal: exynos: Add thermal driver for exynos5440

2013-05-15 Thread Eduardo Valentin
On 14-05-2013 05:58, Amit Daniel Kachhap wrote: > Changes in V4: > Almost all the changes in this version is as per suggestion from Eduardo.The > major ones are listed below, > * Added kconfig symbol ARCH_HAS_TMU which needs to be enabled by platform. > With > this change existing symbol EXYNO

[PATCHv2 1/3] arm: introduce config HAS_BANDGAP

2013-05-15 Thread Eduardo Valentin
...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/Kconfig| 3 +++ arch/arm/mach-omap2/Kconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d423d58..bcbdec9 100644 --- a/arch/arm/Kconfig +++ b/arch/arm

[PATCHv2 2/3] arm: dts: add bandgap entry for OMAP443x devices

2013-05-15 Thread Eduardo Valentin
This patch add the bandgap entry for OMAP4430 devices. Cc: "Benoît Cousson" Cc: Tony Lindgren Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduard

[PATCHv2 3/3] arm: dts: add bandgap entry for OMAP4460 devices

2013-05-15 Thread Eduardo Valentin
Include bandgap devices for OMAP4460 devices. Cc: "Benoît Cousson" Cc: Tony Lindgren Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin ---

[PATCH 0/2] staging -> thermal: move ti-soc-thermal to drivers/thermal

2013-05-15 Thread Eduardo Valentin
far has not caused any issues, and I believe that most of the interesting data is protected by the thermal framework. I am sending this patch for your appreciation and also to get wider review. All best, Eduardo Valentin (2): thermal: introduce TI SoC thermal driver MAINTAINERS: update TI SoC

[PATCH 2/2] MAINTAINERS: update TI SoC thermal driver entry

2013-05-15 Thread Eduardo Valentin
Update driver path and status for TI SoC thermal drivers on MAINTAINERS file. Signed-off-by: Eduardo Valentin --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index bc3d340..2b8a7c5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH 1/2] thermal: introduce TI SoC thermal driver

2013-05-15 Thread Eduardo Valentin
This patch moves the ti-soc-thermal driver out of the staging tree to the thermal tree. Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Greg Kroah-Hartman Cc: Zhang Rui Cc: Eduardo Valentin Cc: J Keerthy Cc: Radhesh Fadnis Cc: Cyril Roelandt Cc: devicetree-disc...@lists.ozlabs.org

Re: [PATCHv2 3/3] arm: dts: add bandgap entry for OMAP4460 devices

2013-05-15 Thread Eduardo Valentin
On 15-05-2013 11:23, Benoit Cousson wrote: > Hi Eduardo, > > On 05/15/2013 04:58 PM, Eduardo Valentin wrote: >> Include bandgap devices for OMAP4460 devices. >> >> Cc: "Benoît Cousson" >> Cc: Tony Lindgren >> Cc: Russell King >>

Re: [PATCHv2 3/3] arm: dts: add bandgap entry for OMAP4460 devices

2013-05-16 Thread Eduardo Valentin
On 16-05-2013 03:20, Benoit Cousson wrote: > Hi Eduardo, > > On 05/15/2013 06:36 PM, Eduardo Valentin wrote: >> On 15-05-2013 11:23, Benoit Cousson wrote: >>> Hi Eduardo, >>> >>> On 05/15/2013 04:58 PM, Eduardo Valentin wrote: >>>> Incl

Re: [PATCHv2 3/3] arm: dts: add bandgap entry for OMAP4460 devices

2013-05-16 Thread Eduardo Valentin
On 15-05-2013 12:57, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 12:36 Wed 15 May , Eduardo Valentin wrote: >> On 15-05-2013 11:23, Benoit Cousson wrote: >>> Hi Eduardo, >>> >>> On 05/15/2013 04:58 PM, Eduardo Valentin wrote: >>>> Include ba

Re: [patch] Documentation: allow multiple return statements per function

2013-05-16 Thread Eduardo Valentin
On 15-05-2013 13:20, Dan Carpenter wrote: > A surprising number of newbies interpret this section to mean that only > one return statement is allowed per function. Part of the problem is > that the "one return statement per function" rule is an actual style > guideline that people are used to from

From: Eduardo Valentin

2013-04-08 Thread Eduardo Valentin
. Eduardo Valentin (11): thermal: use strlcpy instead of strcpy thermal: update driver license thermal: rename notify_thermal_framework to thermal_notify_framework thermal: rename get_thermal_instance to thermal_instance_get thermal: rename get_tz_trend to thermal_zone_trend_get

[PATCH RESEND 01/11] thermal: use strlcpy instead of strcpy

2013-04-08 Thread Eduardo Valentin
For memory boundaries safety, use strlcpy instead of strcpy. Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sys.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 5b7863a..7875607 100644

<    1   2   3   4   5   6   7   8   9   10   >