Re: [RFC, 2/5] Thermal: thermal framework registration failure case cleanup

2013-03-26 Thread Eduardo Valentin
On 26-03-2013 12:26, Zhang Rui wrote: Signed-off-by: Zhang Rui rui.zh...@intel.com Could you please describe why these resource releases are not required anymore? Even on thermal_exit. --- drivers/thermal/thermal_core.c | 12 ++-- 1 file changed, 2 insertions(+), 10

Re: [RFC,3/5] Thermal: build thermal governors into thermal_sys module

2013-03-26 Thread Eduardo Valentin
Hi Rui, On 26-03-2013 12:26, Zhang Rui wrote: Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/thermal/Makefile |6 +++--- drivers/thermal/fair_share.c | 15 ++- drivers/thermal/step_wise.c| 16 ++-- drivers/thermal/thermal_core.c | 36

Re: [RFC,4/5] Thermal: governor API cleanup

2013-03-26 Thread Eduardo Valentin
On 26-03-2013 12:26, Zhang Rui wrote: Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/thermal/thermal_core.c |2 -- drivers/thermal/thermal_core.h |2 ++ include/linux/thermal.h|3 --- Please also clean Documentation/thermal/sysfs_api.txt 3 files changed, 2

[PATCH 00/15] staging: omap-thermal fixes and ports

2013-02-26 Thread Eduardo Valentin
these are based on linux-2.6/master. Patches are also available here: g...@gitorious.org:thermal-framework/thermal-framework.git thermal_work/omap/omap-thermal-fixes https://git.gitorious.org/thermal-framework/thermal-framework.git thermal_work/omap/omap-thermal-fixes Cheers, Eduardo Valentin (12

[PATCH 01/15] staging: omap-thermal: Add print when TSHUT temperature reached

2013-02-26 Thread Eduardo Valentin
From: Ruslan Ruslichenko x0191...@ti.com To indicate that board was shut down due to TSHUT temperature reached it is good to print some information message before shutting down. Signed-off-by: Ruslan Ruslichenko x0191...@ti.com Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers

[PATCH 02/15] staging: omap-thermal: introduce clock feature flag

2013-02-26 Thread Eduardo Valentin
Fadnis radhesh.fad...@ti.com Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.c | 18 +- drivers/staging/omap-thermal/omap-bandgap.h |1 + drivers/staging/omap-thermal/omap4-thermal.c |3 +++ drivers/staging/omap-thermal

[PATCH 03/15] staging: omap-thermal: update OMAP54xx conv_table

2013-02-26 Thread Eduardo Valentin
From: Radhesh Fadnis radhesh.fad...@ti.com This patch updates the ADC conversion table for OMAP5430 ES2.0 devices. Signed-off-by: Radhesh Fadnis radhesh.fad...@ti.com Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.h |5 +- drivers

[PATCH 04/15] staging: omap-thermal: standardize register nomenclature to use 'GPU'

2013-02-26 Thread Eduardo Valentin
In order to keep same nomenclature across the register definition, this change will make all 'MM' suffixes to be named 'GPU'. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.h | 16 drivers/staging/omap-thermal/omap5

[PATCH 05/15] staging: omap-thermal: remove from register map soc and mode on OMAP5

2013-02-26 Thread Eduardo Valentin
On OMAP54xx ES2.0 there is no single read and only one mode: continuous mode. For this reason, there is no point in defining register fields for these operations. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap5-thermal.c | 11 --- 1 files

[PATCH 06/15] staging: omap-thermal: introduce new features of OMAP54xx

2013-02-26 Thread Eduardo Valentin
. Buffer clear bit Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.h | 65 +- drivers/staging/omap-thermal/omap5-thermal.c | 48 +-- 2 files changed, 106 insertions(+), 7 deletions(-) diff --git

[PATCH 07/15] staging: omap-thermal: update OMAP54xx clock sources

2013-02-26 Thread Eduardo Valentin
This patch updates the OMAP54xx data structure to use the right clock source name for ES2.0. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap5-thermal.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/omap

[PATCH 09/15] staging: omap-thermal: remove dedicated counter register for OMAP5

2013-02-26 Thread Eduardo Valentin
On OMAP54xx there is only one counter register. For this reason, each domain must use the same counter register. This patch changes the data definition to coupe with this. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.h |5

[PATCH 10/15] staging: omap-thermal: introduze FREEZE_BIT feature

2013-02-26 Thread Eduardo Valentin
it is possible to freeze the history buffer or not. b. whenever reading the temperature, it will fetch from DTEMP1 instead of DTEMP or DTEMP0. This WA is applicable only for OMAP5430 ES2.0. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.c

[PATCH 08/15] staging: omap-thermal: update feature bitfield for OMAP54xx

2013-02-26 Thread Eduardo Valentin
This patch removes from OMAP54xx the features: . CLK_CTRL . COUNTER . MODE_CONFIG Because these features are not present in OMAP54xx ES2.0 Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap5-thermal.c |5 + 1 files changed, 1 insertions(+), 4

[PATCH 11/15] staging: omap-thermal: update DT entry documentation

2013-02-26 Thread Eduardo Valentin
Simple update on documentation file for DT. This patch also adds an example for OMAP4430 and 0MAP4470, and also updated OMAP4460's example. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap_bandgap.txt | 27 ++-- 1 files changed

[PATCH 12/15] staging: omap-thermal: add DT example for OMAP54xx devices

2013-02-26 Thread Eduardo Valentin
Update documentation with DT example for OMAP54xx devices. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap_bandgap.txt |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/staging/omap-thermal/omap_bandgap.txt b

[PATCH 13/15] staging: omap-thermal: Remove double conv_table reference

2013-02-26 Thread Eduardo Valentin
This patch removes from data structure the double reference of the conversion table. It keeps the reference coming from bandgap data definition. The patch also adapts the code accordingly. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.c

[PATCH 14/15] staging: omap-thermal: name data files accordingly

2013-02-26 Thread Eduardo Valentin
This patch simply changes the name of files containing data structure definition. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/Makefile |4 +- drivers/staging/omap-thermal/omap4-thermal-data.c | 262 +++ drivers/staging

[PATCH 15/15] staging: omap-thermal: update clock prepare count

2013-02-26 Thread Eduardo Valentin
This patch changes the clock management code to also update the clock prepare counter, this way we won't skip the enable/disable operation due to prepare dependencies. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.c | 10 +- 1

Re: [PATCH 15/15] staging: omap-thermal: update clock prepare count

2013-02-27 Thread Eduardo Valentin
Mike, On 27-02-2013 01:35, Mike Turquette wrote: Quoting Eduardo Valentin (2013-02-26 14:53:38) This patch changes the clock management code to also update the clock prepare counter, this way we won't skip the enable/disable operation due to prepare dependencies. Signed-off-by: Eduardo

[PATCH 1/1] documentation: clk: fix couple of misspelling

2013-02-28 Thread Eduardo Valentin
Correcting misspelling inside the clk.txt. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- Documentation/clk.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/clk.txt b/Documentation/clk.txt index 1943fae..4274a54 100644 --- a/Documentation

Re: [PATCH 1/8] Thermal: Create sensor level APIs

2013-02-28 Thread Eduardo Valentin
Durga, On 05-02-2013 06:46, Durgadoss R wrote: This patch creates sensor level APIs, in the generic thermal framework. A Thermal sensor is a piece of hardware that can report temperature of the spot in which it is placed. A thermal sensor driver reads the temperature from this sensor and

Re: [PATCH 2/8] Thermal: Create zone level APIs

2013-02-28 Thread Eduardo Valentin
On 05-02-2013 06:46, Durgadoss R wrote: This patch adds a new thermal_zone structure to thermal.h. Also, adds zone level APIs to the thermal framework. A thermal zone is a hot spot on the platform, which can have one or more sensors and cooling devices attached to it. These sensors can be

Re: [PATCH 3/8] Thermal: Add APIs to bind cdev to new zone structure

2013-02-28 Thread Eduardo Valentin
Durga, On 05-02-2013 06:46, Durgadoss R wrote: This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Same comments on patch 02/08 I want to rise here: - Consider using linked list - You may have contention on your

Re: [PATCH 4/8] Thermal: Add trip point sysfs nodes for sensor

2013-02-28 Thread Eduardo Valentin
Durga, Same comments on patch 02/08 I want to rise here: - Minors on strlcpy, snprintf, devm_ helpers - documentation in the code for these helper functions and also better naming.. On 05-02-2013 06:46, Durgadoss R wrote: This patch adds a trip point related sysfs nodes for each sensor

Re: [PATCH 5/8] Thermal: Create Thermal map sysfs attributes for a zone

2013-02-28 Thread Eduardo Valentin
Durga, On 05-02-2013 06:46, Durgadoss R wrote: This patch creates a thermal map sysfs node under /sys/class/thermal/zoneX/. This contains entries named mapY_trip_type, mapY_sensor_name, mapY_cdev_name, mapY_trip_mask, mapY_weights. Some of the previous comments apply here as well, specially

Re: [PATCHv3 0/8] Thermal Framework Enhancements

2013-02-28 Thread Eduardo Valentin
Durga, On 05-02-2013 06:46, Durgadoss R wrote: This patch set is a v3 of the previous versions submitted here: [v2]: http://lwn.net/Articles/531720/ [v1]: https://lkml.org/lkml/2012/12/18/108 [RFC]:https://patchwork.kernel.org/patch/1758921/ On this version I have some implementation

[PATCH 1/1] staging: omap-thermal: bandgap: fix setting of alert thresholds

2012-09-19 Thread Eduardo Valentin
check for lower and higher temperature limits. Signed-off-by: Radhesh Fadnis radhesh.fad...@ti.com Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/omap

[PATCH 1/4] staging: omap-thermal: Correct checkpatch.pl warnings

2012-09-11 Thread Eduardo Valentin
From: J Keerthy j-keer...@ti.com Removes checkpatch warnings on omap-bandgap.c. Signed-off-by: J Keerthy j-keer...@ti.com Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions

[PATCH 0/4] staging: omap-thermal: clean-ups and fixes

2012-09-11 Thread Eduardo Valentin
/omap/omap-thermal-fixes All best, Eduardo Valentin (3): staging: omap-thermal: remove checkpatch.pl warnings on data files staging: omap-thermal: fix polling period settings staging: omap-thermal: improve conf data handling and initialization J Keerthy (1): staging: omap-thermal: Correct

[PATCH 4/4] staging: omap-thermal: improve conf data handling and initialization

2012-09-11 Thread Eduardo Valentin
. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap-bandgap.c|6 ++-- drivers/staging/omap-thermal/omap-thermal-common.c | 38 +--- 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/drivers/staging/omap-thermal/omap

[PATCH 3/4] staging: omap-thermal: fix polling period settings

2012-09-11 Thread Eduardo Valentin
While registering the omap thermal zones we need to properly specify TC1 and TC2, as long as the proper passive polling period and monitor period. This patch fixes the parameters passed while registering the thermal zone. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers

[PATCH 2/4] staging: omap-thermal: remove checkpatch.pl warnings on data files

2012-09-11 Thread Eduardo Valentin
Simple checkpatch.pl clean ups. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/omap4-thermal.c | 54 +- drivers/staging/omap-thermal/omap5-thermal.c | 38 +- 2 files changed, 46 insertions(+), 46 deletions

[PATCHv2 0/4] staging: adding OMAP bandgap driver

2012-07-07 Thread Eduardo Valentin
-bandgap.c. Cheers, Eduardo Valentin (4): staging: OMAP4+: thermal: introduce bandgap temperature sensor staging: omap-thermal: common code to expose driver to thermal framework staging: omap-thermal: add OMAP4 data structures staging: omap-thermal: add OMAP5 data structures drivers

[PATCHv2 2/4] staging: omap-thermal: common code to expose driver to thermal framework

2012-07-07 Thread Eduardo Valentin
@@ +/* + * OMAP thermal driver interface + * + * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ + * Contact: + * Eduardo Valentin eduardo.valen...@ti.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General

[PATCHv2 3/4] staging: omap-thermal: add OMAP4 data structures

2012-07-07 Thread Eduardo Valentin
This patch adds the data structures needed for proper registration of OMAP4 chips. This patch includes definitions for these chip versions: . OMAP4430 . OMAP4460 . OMAP4470 Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/Kconfig | 14 ++ drivers

[PATCHv2 4/4] staging: omap-thermal: add OMAP5 data structures

2012-07-07 Thread Eduardo Valentin
This patch adds the data structures needed for proper registration of OMAP5 chips. This patch includes definitions for these chip versions: . OMAP5430 Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/Kconfig | 12 + drivers/staging/omap-thermal

[PATCHv2 1/4] staging: OMAP4+: thermal: introduce bandgap temperature sensor

2012-07-07 Thread Eduardo Valentin
properties, like temperature, thresholds and update rate. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com Signed-off-by: Keerthy j-keer...@ti.com --- drivers/staging/Kconfig |2 + drivers/staging/Makefile |1 + drivers/staging/omap-thermal

[PATCHv3 0/4] staging: adding OMAP bandgap driver

2012-07-11 Thread Eduardo Valentin
, Eduardo Valentin (4): staging: OMAP4+: thermal: introduce bandgap temperature sensor staging: omap-thermal: common code to expose driver to thermal framework staging: omap-thermal: add OMAP4 data structures staging: omap-thermal: add OMAP5 data structures drivers/staging/Kconfig

[PATCHv3 1/4] staging: OMAP4+: thermal: introduce bandgap temperature sensor

2012-07-11 Thread Eduardo Valentin
properties, like temperature, thresholds and update rate. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com Signed-off-by: J Keerthy j-keer...@ti.com --- drivers/staging/Kconfig |2 + drivers/staging/Makefile |1 + drivers/staging/omap-thermal

[PATCHv3 2/4] staging: omap-thermal: common code to expose driver to thermal framework

2012-07-11 Thread Eduardo Valentin
index 000..a52caa4 --- /dev/null +++ b/drivers/staging/omap-thermal/omap-thermal-common.c @@ -0,0 +1,397 @@ +/* + * OMAP thermal driver interface + * + * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ + * Contact: + * Eduardo Valentin eduardo.valen...@ti.com

[PATCHv3 3/4] staging: omap-thermal: add OMAP4 data structures

2012-07-11 Thread Eduardo Valentin
This patch adds the data structures needed for proper registration of OMAP4 chips. This patch includes definitions for these chip versions: . OMAP4430 . OMAP4460 . OMAP4470 Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/Kconfig | 14 ++ drivers

[PATCHv3 4/4] staging: omap-thermal: add OMAP5 data structures

2012-07-11 Thread Eduardo Valentin
This patch adds the data structures needed for proper registration of OMAP5 chips. This patch includes definitions for these chip versions: . OMAP5430 Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/Kconfig | 12 + drivers/staging/omap-thermal

[PATCHv4 0/4] staging: adding OMAP bandgap driver

2012-07-12 Thread Eduardo Valentin
to OMAP4/5. Cheers, Eduardo Valentin (4): staging: OMAP4+: thermal: introduce bandgap temperature sensor staging: omap-thermal: common code to expose driver to thermal framework staging: omap-thermal: add OMAP4 data structures staging: omap-thermal: add OMAP5 data structures drivers

[PATCHv4 1/4] staging: OMAP4+: thermal: introduce bandgap temperature sensor

2012-07-12 Thread Eduardo Valentin
properties, like temperature, thresholds and update rate. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com Signed-off-by: J Keerthy j-keer...@ti.com --- drivers/staging/Kconfig |2 + drivers/staging/Makefile |1 + drivers/staging/omap-thermal

[PATCHv4 3/4] staging: omap-thermal: add OMAP4 data structures

2012-07-12 Thread Eduardo Valentin
This patch adds the data structures needed for proper registration of OMAP4 chips. This patch includes definitions for these chip versions: . OMAP4430 . OMAP4460 . OMAP4470 Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/Kconfig | 14 ++ drivers

[PATCHv4 4/4] staging: omap-thermal: add OMAP5 data structures

2012-07-12 Thread Eduardo Valentin
This patch adds the data structures needed for proper registration of OMAP5 chips. This patch includes definitions for these chip versions: . OMAP5430 Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap-thermal/Kconfig | 12 + drivers/staging/omap-thermal

[PATCHv4 2/4] staging: omap-thermal: common code to expose driver to thermal framework

2012-07-12 Thread Eduardo Valentin
/omap-thermal-common.c @@ -0,0 +1,364 @@ +/* + * OMAP thermal driver interface + * + * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ + * Contact: + * Eduardo Valentin eduardo.valen...@ti.com + * + * This program is free software; you can redistribute it and/or + * modify

Re: [PATCH 1/5] staging: omap-thermal: fix error check in omap_thermal_expose_sensor() and in omap_thermal_register_cpu_cooling().

2012-12-11 Thread Eduardo Valentin
On 12-12-2012 02:24, Cyril Roelandt wrote: The omap_bandgap_get_sensor_data() function returns ERR_PTR(), so we need to use IS_ERR() rather than a NULL check. Signed-off-by: Cyril Roelandt tipec...@gmail.com Acked-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/staging/omap

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

2013-08-07 Thread Eduardo Valentin
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; So what does this exactly mean? What is so special about CPU? What other types you've got there? (Am I just lazy not looking at the numerous

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, this original proposal, it lacks a stronger

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

2013-07-25 Thread Eduardo Valentin
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 device tree node

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

2013-07-26 Thread Eduardo Valentin
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 types you've got there? (Am I just lazy not looking at the numerous links you

[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

[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 rui.zh...@intel.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Acked-by: Durgadoss R durgados...@intel.com Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com

[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 rui.zh...@intel.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/thermal

[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 rui.zh...@intel.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com

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

2013-08-23 Thread Eduardo Valentin
...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- 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

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

2013-08-23 Thread Eduardo Valentin
r...@sisk.pl Cc: Rob Herring rob.herr...@calxeda.com Cc: Zhang Rui rui.zh...@intel.com Suggested-by: Wei Ni w...@nvidia.com Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- Documentation/thermal/sysfs-api.txt| 4 +++- drivers/acpi/thermal.c

[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 kh...@linux-fr.org Cc: Guenter Roeck li...@roeck-us.net Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/hwmon/lm75.c | 31 +++ 1 file changed, 31

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

2013-08-23 Thread Eduardo Valentin
@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt | 4 drivers/cpufreq/cpufreq-cpu0.c | 12 2 files changed, 16 insertions(+) diff --git

[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: introduce

[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 kh...@linux-fr.org Cc: Guenter Roeck li...@roeck-us.net Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/hwmon/tmp102.c | 26 ++ 1 file changed, 26

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

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

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

2013-08-23 Thread Eduardo Valentin
...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- arch/arm/boot/dts/omap4460.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap4460.dtsi b/arch/arm/boot/dts/omap4460.dtsi index c2f0f39..9855f29 100644

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

2013-08-23 Thread Eduardo Valentin
-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- arch/arm/boot/dts/omap4460.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap4460.dtsi b/arch/arm/boot/dts/omap4460.dtsi index 9855f29..991bd1b

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

2013-08-23 Thread Eduardo Valentin
...@arm.linux.org.uk 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 eduardo.valen...@ti.com --- arch/arm/boot/dts/omap443x.dtsi | 5 + 1 file changed, 5 insertions

[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 rui.zh...@intel.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com

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

2013-08-23 Thread Eduardo Valentin
King li...@arm.linux.org.uk 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 eduardo.valen...@ti.com --- arch/arm/boot/dts/omap443x.dtsi | 1 + 1 file changed, 1

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

2013-08-23 Thread Eduardo Valentin
-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- arch/arm/boot/dts/omap5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index 4a33fe0..335fcea 100644

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

2013-08-23 Thread Eduardo Valentin
...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- arch/arm/boot/dts/omap5-gpu-thermal.dtsi | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/omap5-gpu-thermal.dtsi diff --git

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

2013-08-23 Thread Eduardo Valentin
...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- arch/arm/boot/dts/omap5.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi

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

2013-08-23 Thread Eduardo Valentin
...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- arch/arm/boot/dts/omap5-core-thermal.dtsi | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/omap5-core-thermal.dtsi diff --git a/arch

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

2013-08-23 Thread Eduardo Valentin
: 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 eduardo.valen...@ti.com --- arch/arm/boot/dts/omap4-cpu-thermal.dtsi | 40 1 file changed, 40

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

2013-08-26 Thread Eduardo Valentin
On 23-08-2013 19:39, Guenter Roeck wrote: On Fri, Aug 23, 2013 at 07:15:44PM -0400, 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 zone is built only if a device tree

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

2013-08-26 Thread Eduardo Valentin
On 26-08-2013 00:42, Viresh Kumar wrote: On 24 August 2013 04:45, Eduardo Valentin eduardo.valen...@ti.com wrote: diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index ad1fde2..ede6487 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0

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

2013-08-26 Thread Eduardo Valentin
On 23-08-2013 19:50, Guenter Roeck wrote: On Fri, Aug 23, 2013 at 07:15:44PM -0400, 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 zone is built only if a device tree

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

2013-08-27 Thread Eduardo Valentin
Hey Mark, On 27-08-2013 05:29, Mark Rutland wrote: On Sat, Aug 24, 2013 at 12:15:42AM +0100, 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 device tree node

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

2013-08-27 Thread Eduardo Valentin
24, 2013 at 12:15:43AM +0100, 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 to have a way to feed board dependent data into the thermal framework

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

2013-08-27 Thread Eduardo Valentin
On 27-08-2013 12:23, Mark Rutland wrote: On Tue, Aug 27, 2013 at 02:44:40PM +0100, Eduardo Valentin wrote: Hello Mark, First of all, thanks for taking the time to review in such level of detail. Lets try to align and have a common understanding. Answers go inline. Please let me know if I

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

2013-08-27 Thread Eduardo Valentin
On 23-08-2013 19:08, Rafael J. Wysocki wrote: On Friday, August 23, 2013 06:03:14 PM Eduardo Valentin wrote: When registering a new thermal_device, the thermal framework will always add a hwmon sysfs interface. This patch adds a flag to make this behavior optional. Now when registering a new

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

2013-08-28 Thread Eduardo Valentin
On 27-08-2013 20:13, Zhang Rui wrote: On 二, 2013-08-27 at 23:17 +0200, Rafael J. Wysocki wrote: On Tuesday, August 27, 2013 02:26:41 PM Eduardo Valentin wrote: On 23-08-2013 19:08, Rafael J. Wysocki wrote: On Friday, August 23, 2013 06:03:14 PM Eduardo Valentin wrote: When registering a new

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 to have a way to feed board dependent data

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 different points on different boards

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 Valentin; linux...@vger.kernel.org; R, Durgadoss

Re: [PATCHv3 3/6] arm: dts: add bandgap entry for OMAP443x devices

2013-06-18 Thread Eduardo Valentin
Benoit, On 07-06-2013 16:46, Eduardo Valentin wrote: This patch add the bandgap entry for OMAP4430 devices. Cc: Benoît Cousson b-cous...@ti.com Cc: Tony Lindgren t...@atomide.com Cc: Russell King li...@arm.linux.org.uk Cc: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org

Re: [PATCHv3 4/6] arm: dts: add bandgap entry for OMAP4460 devices

2013-06-18 Thread Eduardo Valentin
Benoit On 07-06-2013 16:46, Eduardo Valentin wrote: Include bandgap devices for OMAP4460 devices. Cc: Benoît Cousson b-cous...@ti.com Cc: Tony Lindgren t...@atomide.com Cc: Russell King li...@arm.linux.org.uk Cc: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Cc

Re: [PATCHv3 2/6] arm: introduce config HAS_BANDGAP

2013-06-18 Thread Eduardo Valentin
On 12-06-2013 13:07, Tony Lindgren wrote: * Eduardo Valentin eduardo.valen...@ti.com [130607 13:53]: Bandgap is a device used to measure temperature on electronic equipments. It is widely used in digital integrated circuits. It is based on the dependency between silicon voltage

Re: [PATCHv3 5/6] arm: omap2plus_defconfig: enable TI bandgap driver

2013-06-18 Thread Eduardo Valentin
Tony, On 07-06-2013 16:46, Eduardo Valentin wrote: Enable the bandgap driver for TI SoCs thermal support. Cc: Russell King li...@arm.linux.org.uk Cc: Tony Lindgren t...@atomide.com Cc: Javier Martinez Canillas javier.marti...@collabora.co.uk Cc: AnilKumar Ch anilku...@ti.com Cc: Santosh

[PATCHv4 1/6] thermal: ti-soc-thermal: use standard GPIO DT bindings

2013-06-18 Thread Eduardo Valentin
in having a ti specific binding. Cc: Zhang Rui rui.zh...@intel.com Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring rob.herr...@calxeda.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Signed-off-by: Eduardo Valentin eduardo.valen

[PATCH 1/1] arm: add bandgap DT entry for OMAP5

2013-06-18 Thread Eduardo Valentin
@vger.kernel.org Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com Signed-off-by: J Keerthy j-keer...@ti.com --- arch/arm/boot/dts/omap5.dtsi | 8 1 file changed, 8 insertions(+) --- Benoit, Sorry for this very late request, but can you please consider these patches for 3.11 still? I completely

Re: [PATCH 1/1] arm: add bandgap DT entry for OMAP5

2013-06-19 Thread Eduardo Valentin
On 19-06-2013 06:36, Benoit Cousson wrote: Hi Eduardo, On 06/18/2013 09:36 PM, Eduardo Valentin wrote: Add bandgap device DT entry for OMAP5 dtsi. Cc: Benoît Cousson b-cous...@ti.com Cc: Tony Lindgren t...@atomide.com Cc: Russell King li...@arm.linux.org.uk Cc: linux-o

Re: [PATCH 08/15] thermal: cpu_cooling: fix stub function

2013-06-19 Thread Eduardo Valentin
-off-by: Arnd Bergmann a...@arndb.de Acked-by: Eduardo Valentin eduardo.valen...@ti.com What is the status of this patch? I believe Rui is supposed to queue this one right? Cc: Eduardo Valentin eduardo.valen...@ti.com Cc: Zhang Rui rui.zh...@intel.com Cc: Amit Daniel kachhap amit.dan

Re: [PATCH V6 02/30] thermal: exynos: Use ARCH_HAS_BANDGAP config to know the supported soc's

2013-06-19 Thread Eduardo Valentin
-by: Kukjin Kim kgene@samsung.com Acked-by: Jonghwa Lee jonghwa3@samsung.com Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com Acked-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/thermal/samsung/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions

Re: [PATCH V6 04/30] thermal: exynos: Bifurcate exynos thermal common and tmu controller code

2013-06-19 Thread Eduardo Valentin
*/ +#endif /* _EXYNOS_THERMAL_COMMON_H */ -- You have got to be excited about what you are doing. (L. Lamport) Eduardo Valentin signature.asc Description: OpenPGP digital signature

Re: [PATCH V6 30/30] arm: exynos: enable ARCH_HAS_BANDGAP

2013-06-19 Thread Eduardo Valentin
Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com Acked-by: Eduardo Valentin eduardo.valen...@ti.com --- arch/arm/mach-exynos/Kconfig |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index d19edff

Re: [PATCH V6 03/30] thermal: exynos: Remove un-necessary CPU_THERMAL dependency

2013-06-19 Thread Eduardo Valentin
jonghwa3@samsung.com Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com Acked-by: Eduardo Valentin eduardo.valen...@ti.com Please have a look on my comment on your patch 04. You may want to have this dependency still on your core part. --- drivers/thermal/samsung/Kconfig |1

Re: [PATCH V6 01/30] thermal: exynos: Moving exynos thermal files into samsung directory

2013-06-19 Thread Eduardo Valentin
@samsung.com Acked-by: Jonghwa Lee jonghwa3@samsung.com Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com Acked-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/thermal/Kconfig| 13 + drivers/thermal/Makefile

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