[PATCH v2 0/2] thermal: qcom: tsens: refine wake IRQ handling for suspend
From: Priyansh Jain
Date: Mon Jun 01 2026 - 02:38:19 EST
This series refines how TSENS threshold IRQs are used as wake sources
across suspend/resume.
Patch 1 moves IRQ wake control from registration time into PM callbacks,
so wakeup configuration follows the actual suspend state instead of being
left enabled during normal runtime.
Patch 2 adds a platform-data opt-out for wake IRQ setup and uses it for
automotive TSENS compatibles (SA8775P/SA8255P), where parking suspend
should not be exited repeatedly due to TSENS threshold wake events.
Series highlights:
- store and manage TSENS IRQ wake state in suspend/resume paths
- keep existing runtime monitoring behavior unchanged
- disable TSENS wake IRQ setup for selected automotive targets
Signed-off-by: Priyansh Jain <priyansh.jain@xxxxxxxxxxxxxxxx>
---
Changes in v2:
- Fix indentation issues
- Remove redundant checks for IRQ numbers since device_may_wakeup() already
ensures interrupts are registered. Simplifies code logic.
- Patch 2: No changes, LGTM from Daniel Lezcano
- Link to v1: https://patch.msgid.link/20260526-tsens_interrupt_wake_control-v1-0-6adcd75555b9@xxxxxxxxxxxxxxxx
To: Amit Kucheria <amitk@xxxxxxxxxx>
To: Thara Gopinath <thara.gopinath@xxxxxxxxx>
To: "Rafael J. Wysocki" <rafael@xxxxxxxxxx>
To: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
To: Zhang Rui <rui.zhang@xxxxxxxxx>
To: Lukasz Luba <lukasz.luba@xxxxxxx>
Cc: linux-pm@xxxxxxxxxxxxxxx
Cc: linux-arm-msm@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
---
Priyansh Jain (2):
thermal: qcom: tsens: switch wake IRQ handling to PM callbacks
thermal: qcom: tsens: Disable wakeup interrupt setup on automotive targets
drivers/thermal/qcom/tsens-v2.c | 9 +++++-
drivers/thermal/qcom/tsens.c | 70 ++++++++++++++++++++++++++++++++++-------
drivers/thermal/qcom/tsens.h | 23 +++++++++++++-
3 files changed, 88 insertions(+), 14 deletions(-)
---
base-commit: e8c2f9fdadee7cbc75134dc463c1e0d856d6e5c7
change-id: 20260526-tsens_interrupt_wake_control-08be7b86591d
Best regards,
--
Priyansh Jain <priyansh.jain@xxxxxxxxxxxxxxxx>