OSDN Git Service

thermal: rcar_gen3_thermal: Generate interrupt when temperature changes
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 12 Feb 2020 22:49:17 +0000 (23:49 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 12 Mar 2020 10:40:57 +0000 (11:40 +0100)
commit267c4d8d132c8646fc90a58d40e3117656a4e9b5
treec2e5d9de298a0cb3962d8628280d74d60eccde06
parentd543c8424c116549c4322ff0341e388452aca0ea
thermal: rcar_gen3_thermal: Generate interrupt when temperature changes

The desired behavior of the driver is to generate an interrupt and call
thermal_zone_device_update() as soon as the temperature have changed
more then one degree.

When the set_trips operation was implemented it was believed that the
trip window set by the framework would move around the current
temperature and the hysteresis value described in devicetree. The
behavior of the framework is however to set a window based on the trip
points described in devicetree.

Remove the set_trips operation which was not used correctly and update
the temperatures that triggers interrupts directly from the interrupt
handler.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200212224917.737314-1-niklas.soderlund+renesas@ragnatech.se
drivers/thermal/rcar_gen3_thermal.c