linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers: thermal: allow ti-soc-thermal run without pcb zone
@ 2013-09-15 19:21 Eduardo Valentin
  0 siblings, 0 replies; only message in thread
From: Eduardo Valentin @ 2013-09-15 19:21 UTC (permalink / raw)
  To: rui.zhang; +Cc: Eduardo Valentin, linux-pm, linux-kernel

This patch changes the behavior of TI SoC thermal driver
when there is a PCB thermal zone.

Instead of reporting an error code when reading from
PCB temperature sensor fails, this patch will make
the driver attempt to compose the hotspot extrapolation
based on bandgap readings only.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
---
 drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
index f588b32..e5b1cde 100644
--- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
+++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
@@ -111,6 +111,7 @@ static inline int __ti_thermal_get_temp(void *devdata, long *temp)
 		} else {
 			dev_err(bgp->dev,
 				"Failed to read PCB state. Using defaults\n");
+			ret = 0;
 		}
 	}
 	*temp = ti_thermal_hotspot_temperature(tmp, slope, constant);
-- 
1.8.2.1.342.gfa7285d


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-15 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-15 19:21 [PATCH] drivers: thermal: allow ti-soc-thermal run without pcb zone Eduardo Valentin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).