Skip to content

thermal: rcar_gen3_thermal: Apply shared interrupts for thermal sensors

Khiem Nguyen linux-arm-kernel linux-devicetree linux-pm linux-renesas-soc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3thermal: rcar_gen3_thermal: Modify the shared irq with initializationdrivers/thermal/rcar_gen3_thermal.c+13 -70 replies
2/3thermal: rcar_gen3_thermal: Modify the way to detect the interruptsdrivers/thermal/rcar_gen3_thermal.c+44 -250 replies
3/3arm64: dts: r8a7795: Support shared irq for thermal sensorsarch/arm64/boot/dts/renesas/r8a7795.dtsi+6 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH/RFC 0/3] thermal: rcar_gen3_thermal: Apply shared interrupts for thermal sensors

This patchset intents to improve thermal driver operation in interrupt mode, which has been introduced in [1].

The original idea is using 1 interrupt for each thermal sensor, to detect both up and down temperature. It caused issue when the temperature is changing rapidly.

The new idea is about using shared interrupt I/F for all three sensors. Two interrupts will be set to detect temperature up and down. When interrupt occurs, the temperature will be updated in all 3 sensors, if the temperature value is changed.

All comments are welcome.

[1]
[PATCH 0/4] thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal support
https://www.spinics.net/lists/kernel/msg2282663.html

--
Gaku Inami (3):
thermal: rcar_gen3_thermal: Modify the shared irq with initialization
thermal: rcar_gen3_thermal: Modify the way to detect the interrupts
arm64: dts: r8a7795: Support shared irq for thermal sensors

 arch/arm64/boot/dts/renesas/r8a7795.dtsi |  9 ++--
 drivers/thermal/rcar_gen3_thermal.c      | 89 ++++++++++++++++++++------------
 2 files changed, 63 insertions(+), 35 deletions(-)
Signature · 1 line
1.9.1