Thread (4 messages) 4 messages, 4 authors, 2015-06-26
STALE4047d

[PATCH] thermal: Switch mode to enabled once the cooling device is bound

From: Keerthy <j-keerthy@ti.com>
Date: 2015-06-25 12:50:50
Also in: linux-omap
Subsystem: the rest, thermal · Maintainers: Linus Torvalds, Rafael J. Wysocki, Daniel Lezcano

Currently mode is still disabled even after the cooling device is bound
to the appropriate device. Hence changing the mode to enabled as soon as
the cooling device is registered successfully.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 drivers/thermal/of-thermal.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c
index 04b1be7..bc84485 100644
--- a/drivers/thermal/of-thermal.c
+++ b/drivers/thermal/of-thermal.c
@@ -163,6 +163,9 @@ static int of_thermal_bind(struct thermal_zone_device *thermal,
 		}
 	}
 
+	/* Now that cooling device is bound enable the thermal device*/
+	data->mode = THERMAL_DEVICE_ENABLED;
+
 	return 0;
 }
 
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help