summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKendall Willis <k-willis@ti.com>2025-12-30 15:37:18 -0600
committerUlf Hansson <ulf.hansson@linaro.org>2026-04-01 13:07:31 +0200
commitadff6abbdcf9ecabd9bdf299ace6b5f85160e5f4 (patch)
tree7db9167a79501eaca6059973353a8ee80557bdb9
parentaeb6d7c676f9938e59798b4203e6bb4e8b9f6d2d (diff)
pmdomain: ti_sci: handle wakeup constraint for out-of-band wakeup
For devices capable of out-of-band system wakeups via I/O daisy chaining, prevent sending wakeup constraints to the PM co-processor. This allows the system to enter deeper low power modes, as the device is not marked as requiring power. Replaces the logic from commit b06bc4727991 ("pmdomain: ti_sci: handle wake IRQs for IO daisy chain wakeups") since checking out-of-band wakeup will cover the same functionality. Detect out-of-band wakeup in the suspend path, and if it exists, skip sending the constraint. Signed-off-by: Kendall Willis <k-willis@ti.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/pmdomain/ti/ti_sci_pm_domains.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pmdomain/ti/ti_sci_pm_domains.c b/drivers/pmdomain/ti/ti_sci_pm_domains.c
index e5d1934f78d9..18d33bc35dee 100644
--- a/drivers/pmdomain/ti/ti_sci_pm_domains.c
+++ b/drivers/pmdomain/ti/ti_sci_pm_domains.c
@@ -91,8 +91,9 @@ static inline void ti_sci_pd_set_wkup_constraint(struct device *dev)
* If device can wakeup using IO daisy chain wakeups,
* we do not want to set a constraint.
*/
- if (dev->power.wakeirq) {
- dev_dbg(dev, "%s: has wake IRQ, not setting constraints\n", __func__);
+ if (device_out_band_wakeup(dev)) {
+ dev_dbg(dev, "%s: has out of band wakeup, not setting constraints\n", \
+ __func__);
return;
}