mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
drivers: thermal: allow ti-soc-thermal run without pcb zone
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>
This commit is contained in:
parent
86f5362e7a
commit
df8f134764
@ -110,6 +110,7 @@ static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal,
|
||||
} else {
|
||||
dev_err(bgp->dev,
|
||||
"Failed to read PCB state. Using defaults\n");
|
||||
ret = 0;
|
||||
}
|
||||
}
|
||||
*temp = ti_thermal_hotspot_temperature(tmp, slope, constant);
|
||||
|
Loading…
Reference in New Issue
Block a user