linux/drivers/thermal/st
David HERNANDEZ SANCHEZ 3c9d082064 thermal: stm32: read factory settings inside stm_thermal_prepare
Calling stm_thermal_read_factory_settings before clocking
internal peripheral causes bad register values and makes
temperature computation wrong.

Calling stm_thermal_read_factory_settings inside
stm_thermal_prepare fixes this problem as internal
peripheral is well clocked at this stage.

Fixes: 1d693155 ("thermal: add stm32 thermal driver")
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: David Hernandez Sanchez <david.hernandezsanchez@st.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2018-12-10 20:15:21 -08:00
..
Kconfig thermal: add stm32 thermal driver 2018-10-25 10:44:52 -07:00
Makefile thermal: add stm32 thermal driver 2018-10-25 10:44:52 -07:00
st_thermal_memmap.c thermal: Enhance thermal_zone_device_update for events 2016-09-27 14:35:21 +08:00
st_thermal_syscfg.c
st_thermal.c
st_thermal.h
stm_thermal.c thermal: stm32: read factory settings inside stm_thermal_prepare 2018-12-10 20:15:21 -08:00