[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 --- Documentation/ABI/testing/sysfs-class-thermal | 161 + 1 file changed, 161 insertions(+) create mode 100644 Documentation/ABI/te

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

2014-01-17 Thread Durgadoss R
API * Use 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 --- 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 --- Documentation/thermal/sysfs-api2.txt | 240 ++ 1 file changed, 240 insertions(+) create

[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 --- drivers/thermal/thermal_core.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/drivers/thermal/thermal_core.c b

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

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

[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 --- drivers/thermal/thermal_core_new.c | 135 include/linux/thermal.h|8 +++ 2

[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 --- Documentation/thermal/sysfs-api2.txt | 240 ++ 1 file changed, 240 insertions(+) create

[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 --- drivers/thermal/thermal_core_new.c | 268 include/linux/thermal.h| 23 2 files changed, 291 insertions(+) diff --git a/drivers/thermal

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

2014-01-16 Thread Durgadoss R
. Signed-off-by: Durgadoss R --- 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/thermal_core_new.c

[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 --- drivers/thermal/Kconfig|6 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 322 3

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

2014-01-16 Thread Durgadoss R
. Signed-off-by: Durgadoss R --- 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/thermal_core_new.c index e6a35f0

[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 --- Documentation/ABI/testing/sysfs-class-thermal | 137 + 1 file changed, 137 insertions(+) create mode 100644 Documentation/ABI/te

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

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

[PATCHv5 00/10] Thermal Framework Enhancements

2014-01-16 Thread Durgadoss R
nterfaces introduced in this patch. Patch 10/10: A dummy 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

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

2013-10-01 Thread Durgadoss R
. Signed-off-by: Durgadoss R --- 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/thermal_core.c index d6e29f6

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

2013-10-01 Thread Durgadoss R
. Signed-off-by: Durgadoss R --- 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/thermal_core.c index 3c4ef62

[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 --- Documentation/thermal/sysfs-api2.txt | 248 ++ 1 file changed, 248 insertions(+) create

[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 --- drivers/thermal/thermal_core.c | 284

[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 --- Documentation/ABI/testing/sysfs-class-thermal | 137 + 1 file changed, 137 insertions(+) create mode 100644 Documentation/ABI/te

[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 --- drivers/thermal/thermal_core.c | 136 include/linux/thermal.h|9 +++ 2 files

[PATCHv4 0/9] Thermal Framework Enhancements

2013-10-01 Thread Durgadoss R
This is not for merge. Sorry for the long delay in resubmitting 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 z

[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 --- drivers/thermal/thermal_core.c | 267 +++- include/linux/thermal.h| 23 2 files changed, 289 insertions(+), 1 deletion(-) diff --git a/drivers

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

2013-10-01 Thread Durgadoss R
s might accidently free memory 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 --- drivers/thermal/thermal_core.c |3 ++- 1 file change

[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 --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 322 3

[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 --- drivers/thermal/thermal_sys.c | 196 + include/linux/thermal.h | 22 + 2 files changed, 218 insertions(+) diff --git a/drivers/thermal

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

2013-02-05 Thread Durgadoss R
. Signed-off-by: Durgadoss R --- 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/thermal_sys.c index bf703b1

[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 --- drivers/thermal/thermal_sys.c | 221

[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 --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |2 + drivers/thermal/thermal_test.c | 324 3

[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 --- Documentation/thermal/sysfs-api2.txt | 247 ++ 1 file changed, 247 insertions(+) create

[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 --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h |9 + 2 files

[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 --- Documentation/ABI/testing/sysfs-class-thermal | 137 + 1 file changed, 137 insertions(+) create mode 100644 Documentation/ABI/te

[PATCHv3 0/8] Thermal Framework Enhancements

2013-02-05 Thread Durgadoss R
for sysfs interfaces 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 sy

[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 --- drivers/thermal/thermal_sys.c | 280

[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 --- drivers/thermal/thermal_sys.c | 196 + include/linux/thermal.h | 22 + 2 files changed, 218 insertions(+) diff --git a/drivers/thermal

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

2013-01-06 Thread Durgadoss R
. Signed-off-by: Durgadoss R --- 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/thermal_sys.c index 332bd61

[PATCHv2 0/9] Thermal Framework Enhancements

2013-01-06 Thread Durgadoss R
configurable through 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: Crea

[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 --- drivers/thermal/Kconfig | 14 ++ include/linux/thermal.h |6 +++--- 2 files changed, 17 insertions(+), 3 deletions

[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 --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 329 3

[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 --- Documentation/ABI/testing/sysfs-class-thermal | 93 + 1 file changed, 93 insertions(+) create mode 100644 Documentation/ABI/te

[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 --- Documentation/thermal/sysfs-api2.txt | 248 ++ 1 file changed, 248 insertions(+) create

[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 --- drivers/thermal/thermal_sys.c | 122

[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 --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h |9 + 2 files

[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 --- drivers/thermal/thermal_sys.c | 280

[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 --- drivers/thermal/thermal_sys.c | 280

[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 --- drivers/thermal/thermal_sys.c

[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 --- drivers/thermal/thermal_sys.c | 237 - include/linux/thermal.h

[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 --- Documentation/thermal/sysfs-api2.txt | 248 ++ 1 file changed, 248 insertions(+) create

[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 --- No great reason for using 12. --- drivers/thermal/Kconfig | 14 ++ include/linux/thermal.h |6 +++--- 2 files changed, 17

[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 --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 315 3

[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 --- drivers/thermal/thermal_sys.c | 194 + include/linux/thermal.h | 21 + 2 files changed, 215 insertions(+) diff --git a/drivers/thermal

[PATCH 0/8] Thermal Framework Enhancements

2012-12-18 Thread Durgadoss R
nghbo 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: Ad

[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 --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h |8 + 2 files