[PATCHv5 RESEND 03/10] Thermal: Add cooling device APIs

2014-01-17 Thread Durgadoss R
thermal_cdev_register as API name, to keep THERMAL_V2 APIs along with the existing ones. * Use 'cdevX' as name for cooling_device so as to not collide with the existing ABI. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core_new.c | 184

[PATCHv5 RESEND 08/10] Thermal: Add Documentation to new APIs

2014-01-17 Thread Durgadoss R
This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/thermal/sysfs-api2.txt | 240 ++ 1 file changed, 240

[PATCHv5 RESEND 09/10] Thermal: Add ABI Documentation for sysfs interfaces

2014-01-17 Thread Durgadoss R
This patch adds Documentation for ABI's introduced for thermal subsystem (under /sys/class/thermal/). Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/ABI/testing/sysfs-class-thermal | 161 + 1 file changed, 161 insertions(+) create mode 100644

[PATCHv5 00/10] Thermal Framework Enhancements

2014-01-16 Thread Durgadoss R
driver that can be used for testing. This is not for merge. Thanks to Rui for helping me in resolving some Kconfig issues, related to this series. Durgadoss R (10): Thermal: Do kfree in _unregister functions Thermal: Create sensor level APIs Thermal: Add cooling device APIs Thermal: Create

[PATCHv5 03/10] Thermal: Add cooling device APIs

2014-01-16 Thread Durgadoss R
thermal_cdev_register as API name, to keep THERMAL_V2 APIs along with the existing ones. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core_new.c | 184 include/linux/thermal.h| 12 +++ 2 files changed, 196

[PATCHv5 09/10] Thermal: Add ABI Documentation for sysfs interfaces

2014-01-16 Thread Durgadoss R
This patch adds Documentation for ABI's introduced for thermal subsystem (under /sys/class/thermal/). Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/ABI/testing/sysfs-class-thermal | 137 + 1 file changed, 137 insertions(+) create mode 100644

[PATCHv5 07/10] Thermal: Create Thermal map sysfs attributes for a zone

2014-01-16 Thread Durgadoss R
. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core_new.c | 275 include/linux/thermal.h| 25 2 files changed, 300 insertions(+) diff --git a/drivers/thermal/thermal_core_new.c b/drivers/thermal

[PATCHv5 10/10] Thermal: Dummy driver used for testing

2014-01-16 Thread Durgadoss R
This patch has a dummy driver that can be used for testing purposes. This patch is not for merge. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/Kconfig|6 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 322

[PATCHv5 06/10] Thermal: Add trip point sysfs nodes for sensor

2014-01-16 Thread Durgadoss R
. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core_new.c | 358 +++- include/linux/thermal.h| 39 +++- 2 files changed, 395 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_core_new.c b/drivers/thermal

[PATCHv5 08/10] Thermal: Add Documentation to new APIs

2014-01-16 Thread Durgadoss R
This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/thermal/sysfs-api2.txt | 240 ++ 1 file changed, 240

[PATCHv5 04/10] Thermal: Create zone level APIs

2014-01-16 Thread Durgadoss R
throttled, can help to bring down the temperature of the hot spot. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core_new.c | 268 include/linux/thermal.h| 23 2 files changed, 291 insertions(+) diff --git

[PATCHv5 05/10] Thermal: Add APIs to bind cdev to new zone structure

2014-01-16 Thread Durgadoss R
This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the existing cooling device implementation. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core_new.c | 135 include/linux/thermal.h

[PATCHv5 02/10] Thermal: Create sensor level APIs

2014-01-16 Thread Durgadoss R
, to register(or unregister) with the thermal framework. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/Kconfig|3 + drivers/thermal/Makefile |1 + drivers/thermal/thermal_core.c |2 +- drivers/thermal/thermal_core.h |1 + drivers/thermal

[PATCHv5 01/10] Thermal: Do kfree in _unregister functions

2014-01-16 Thread Durgadoss R
, do all kfree() of devices in their own _unregister functions. This makes the code look clean and easy to maintain. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/drivers

[PATCHv4 1/9] Thermal: Check for validity before doing kfree

2013-10-01 Thread Durgadoss R
allocated them silently; and cause memory errors. This patch changes this behavior by doing kfree(cdev) only when the device pointer belongs to a real cdev i.e. cooling_device. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core.c |3 ++- 1 file changed, 2 insertions

[PATCHv4 3/9] Thermal: Create zone level APIs

2013-10-01 Thread Durgadoss R
throttled, can help to bring down the temperature of the hot spot. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core.c | 267 +++- include/linux/thermal.h| 23 2 files changed, 289 insertions(+), 1 deletion

[PATCHv4 9/9] Thermal: Dummy driver used for testing

2013-10-01 Thread Durgadoss R
This patch has a dummy driver that can be used for testing purposes. This patch is not for merge. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 322

[PATCHv4 4/9] Thermal: Add APIs to bind cdev to new zone structure

2013-10-01 Thread Durgadoss R
This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core.c | 136 include/linux/thermal.h

[PATCHv4 0/9] Thermal Framework Enhancements

2013-10-01 Thread Durgadoss R
this patch set. Thanks to Eduardo, Wei Ni, for their comments on v3. Durgadoss R (9): Thermal: Check for validity before doing kfree Thermal: Create sensor level APIs Thermal: Create zone level APIs Thermal: Add APIs to bind cdev to new zone structure Thermal: Add trip point sysfs nodes

[PATCHv4 8/9] Thermal: Add ABI Documentation for sysfs interfaces

2013-10-01 Thread Durgadoss R
This patch adds Documentation for ABI's introduced for thermal subsystem (under /sys/class/thermal/). Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/ABI/testing/sysfs-class-thermal | 137 + 1 file changed, 137 insertions(+) create mode 100644

[PATCHv4 7/9] Thermal: Add Documentation to new APIs

2013-10-01 Thread Durgadoss R
This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/thermal/sysfs-api2.txt | 248 ++ 1 file changed, 248

[PATCHv4 2/9] Thermal: Create sensor level APIs

2013-10-01 Thread Durgadoss R
subsystem. If the sensor needs to participate in platform thermal management, the corresponding driver can use the APIs introduced in this patch, to register(or unregister) with the thermal framework. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core.c | 284

[PATCHv4 5/9] Thermal: Add trip point sysfs nodes for sensor

2013-10-01 Thread Durgadoss R
. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core.c | 344 +++- include/linux/thermal.h| 40 - 2 files changed, 379 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal

[PATCHv4 6/9] Thermal: Create Thermal map sysfs attributes for a zone

2013-10-01 Thread Durgadoss R
. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_core.c | 252 +++- include/linux/thermal.h| 26 + 2 files changed, 277 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal

[PATCHv3 0/8] Thermal Framework Enhancements

2013-02-05 Thread Durgadoss R
introduced in this patch. Patch 8/8: A dummy driver that can be used for testing. This is not for merge. Durgadoss R (8): Thermal: Create sensor level APIs Thermal: Create zone level APIs Thermal: Add APIs to bind cdev to new zone structure Thermal: Add trip point sysfs nodes for sensor

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

2013-02-05 Thread Durgadoss R
subsystem. If the sensor needs to participate in platform thermal management, the corresponding driver can use the APIs introduced in this patch, to register(or unregister) with the thermal framework. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 280

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

2013-02-05 Thread Durgadoss R
This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h

[PATCH 7/8] Thermal: Add ABI Documentation for sysfs interfaces

2013-02-05 Thread Durgadoss R
This patch adds Documentation for ABI's introduced for thermal subsystem (under /sys/class/thermal/). Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/ABI/testing/sysfs-class-thermal | 137 + 1 file changed, 137 insertions(+) create mode 100644

[PATCH 6/8] Thermal: Add Documentation to new APIs

2013-02-05 Thread Durgadoss R
This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/thermal/sysfs-api2.txt | 247 ++ 1 file changed, 247

[PATCH 8/8] Thermal: Dummy driver used for testing

2013-02-05 Thread Durgadoss R
This patch has a dummy driver that can be used for testing purposes. This patch is not for merge. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |2 + drivers/thermal/thermal_test.c | 324

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

2013-02-05 Thread Durgadoss R
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. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 221

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

2013-02-05 Thread Durgadoss R
. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 225 - include/linux/thermal.h | 38 ++- 2 files changed, 260 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal

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

2013-02-05 Thread Durgadoss R
throttled, can help to bring down the temperature of the hot spot. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 196 + include/linux/thermal.h | 22 + 2 files changed, 218 insertions(+) diff --git

[PATCH 1/9] Thermal: Create sensor level APIs

2013-01-06 Thread Durgadoss R
subsystem. If the sensor needs to participate in platform thermal management, the corresponding driver can use the APIs introduced in this patch, to register(or unregister) with the thermal framework. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 280

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

2013-01-06 Thread Durgadoss R
This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h

[PATCH 5/9] Thermal: Create 'mapX' sysfs node for a zone

2013-01-06 Thread Durgadoss R
This patch creates a thermal map sysfs node under /sys/class/thermal/zoneX/. This contains entries named map0, map1 .. mapN. Each map has the following space separated values: trip_type sensor_name cdev_name trip_mask weights Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal

[PATCH 6/9] Thermal: Add Documentation to new APIs

2013-01-06 Thread Durgadoss R
This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/thermal/sysfs-api2.txt | 248 ++ 1 file changed, 248

[PATCH 8/9] Thermal: Add ABI Documentation for sysfs interfaces

2013-01-06 Thread Durgadoss R
This patch adds Documentation for ABI's introduced for thermal subsystem (under /sys/class/thermal/). Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/ABI/testing/sysfs-class-thermal | 93 + 1 file changed, 93 insertions(+) create mode 100644

[PATCH 9/9] Thermal: Dummy driver used for testing

2013-01-06 Thread Durgadoss R
This patch has a dummy driver that can be used for testing purposes. This patch is not for merge. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 329

[PATCH 7/9] Thermal: Make PER_ZONE values configurable

2013-01-06 Thread Durgadoss R
This patch makes MAX_SENSORS_PER_ZONE and MAX_CDEVS_PER_ZONE values configurable. The default value is 1, and range is 1-12. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/Kconfig | 14 ++ include/linux/thermal.h |6 +++--- 2 files changed, 17 insertions

[PATCHv2 0/9] Thermal Framework Enhancements

2013-01-06 Thread Durgadoss R
Kconfig Patch 8/9: Add ABI documentation for sysfs interfaces introduced in this patch. Patch 9/9: A dummy driver that can be used for testing. This is not for merge. Thanks to Greg-KH, Hongbo Zhang and Joe Perches for their comments on v1. Durgadoss R (9): Thermal: Create sensor level APIs

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

2013-01-06 Thread Durgadoss R
. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 211 - include/linux/thermal.h | 38 +++- 2 files changed, 246 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal

[PATCH 2/9] Thermal: Create zone level APIs

2013-01-06 Thread Durgadoss R
throttled, can help to bring down the temperature of the hot spot. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 196 + include/linux/thermal.h | 22 + 2 files changed, 218 insertions(+) diff --git

[PATCH 0/8] Thermal Framework Enhancements

2012-12-18 Thread Durgadoss R
Zhang, Wei Ni for their feedback on the RFC version. Durgadoss R (8): Thermal: Create sensor level APIs Thermal: Create zone level APIs Thermal: Add APIs to bind cdev to new zone structure Thermal: Add Thermal_trip sysfs node Thermal: Add 'thermal_map' sysfs node Thermal: Add Documentation

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

2012-12-18 Thread Durgadoss R
This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h

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

2012-12-18 Thread Durgadoss R
throttled, can help to bring down the temperature of the hot spot. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 194 + include/linux/thermal.h | 21 + 2 files changed, 215 insertions(+) diff --git

[PATCH 8/8] Thermal: Dummy driver used for testing

2012-12-18 Thread Durgadoss R
This patch has a dummy driver that can be used for testing purposes. This patch is not for merge. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 315

[PATCH 7/8] Thermal: Make PER_ZONE values configurable

2012-12-18 Thread Durgadoss R
This patch makes MAX_SENSORS_PER_ZONE and MAX_CDEVS_PER_ZONE values configurable. The default value is 1, and range is 1-12. Signed-off-by: Durgadoss R durgados...@intel.com --- No great reason for using 12. --- drivers/thermal/Kconfig | 14 ++ include/linux/thermal.h |6

[PATCH 6/8] Thermal: Add Documentation to new APIs

2012-12-18 Thread Durgadoss R
This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/thermal/sysfs-api2.txt | 248 ++ 1 file changed, 248

[PATCH 4/8] Thermal: Add Thermal_trip sysfs node

2012-12-18 Thread Durgadoss R
This patch adds a thermal_trip directory under /sys/class/thermal/zoneX. This directory contains the trip point values for sensors bound to this zone. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 237 - include

[PATCH 5/8] Thermal: Add 'thermal_map' sysfs node

2012-12-18 Thread Durgadoss R
This patch creates a thermal map sysfs node under /sys/class/thermal/thermal_zoneX/. This contains entries named map0, map1 .. mapN. Each map has the following space separated values: trip_type sensor_name cdev_name trip_mask weights Signed-off-by: Durgadoss R durgados...@intel.com --- drivers

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

2012-12-18 Thread Durgadoss R
subsystem. If the sensor needs to participate in platform thermal management, the corresponding driver can use the APIs introduced in this patch, to register(or unregister) with the thermal framework. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 280