linux-stable/drivers/thermal
Daniel Lezcano dd9989eda8 thermal/drivers/hisi: Remove costly sensor inspection
commit 10d7e9a918 upstream.

The sensor is all setup, bind, resetted, acked, etc... every single second.

That was the way to workaround a problem with the interrupt bouncing again and
again.

With the following changes, we fix all in one:

 - Do the setup, one time, at probe time

 - Add the IRQF_ONESHOT, ack the interrupt in the threaded handler

 - Remove the interrupt handler

 - Set the correct value for the LAG register

 - Remove all the irq_enabled stuff in the code as the interruption
   handling is fixed

 - Remove the 3ms delay

 - Reorder the initialization routine to be in the right order

It ends up to a nicer code and more efficient, the 3-5ms delay is removed from
the get_temp() path.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Tested-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Rafael David Tinoco <rafael.tinoco@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-08 13:03:40 +01:00
..
broadcom thermal: bcm2835: Stop using printk format %pCr 2018-07-03 11:24:48 +02:00
int340x_thermal thermal: int3403_thermal: Fix NULL pointer deref on module load / probe 2018-06-21 04:02:47 +09:00
qcom
samsung thermal: exynos: fix setting rising_threshold for Exynos5433 2018-08-03 07:50:37 +02:00
st
tegra
ti-soc-thermal
armada_thermal.c
clock_cooling.c
cpu_cooling.c
da9062-thermal.c thermal: da9062/61: Prevent hardware access during system suspend 2018-11-13 11:14:56 -08:00
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c thermal/drivers/hisi: Remove costly sensor inspection 2018-12-08 13:03:40 +01:00
imx_thermal.c thermal: imx: Fix race condition in imx_thermal_probe() 2018-04-24 09:36:34 +02:00
intel_bxt_pmic_thermal.c
intel_pch_thermal.c
intel_powerclamp.c
intel_quark_dts_thermal.c
intel_soc_dts_iosf.c
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c
Kconfig thermal: enable broadcom menu for arm64 bcm2835 2018-11-21 09:24:07 +01:00
kirkwood_thermal.c
Makefile
max77620_thermal.c
mtk_thermal.c
of-thermal.c thermal: of-thermal: disable passive polling when thermal zone is disabled 2018-10-03 17:00:57 -07:00
power_allocator.c
qcom-spmi-temp-alarm.c
qoriq_thermal.c
rcar_gen3_thermal.c
rcar_thermal.c
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal-generic-adc.c
thermal_core.c
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_sysfs.c
uniphier_thermal.c
user_space.c
x86_pkg_temp_thermal.c
zx2967_thermal.c