Skip to contentSkip to conversation

clocksource/drivers/timer-tegra186: Use NOIRQ suspend/resume

PATCH New Jon Hunter 1 participant 1 message Nov 16

Subsystems (2)
lore
Share & tools
lore

Jon Hunter

author maintainer
#0 lore raw

PATCH 1/1 clocksource/drivers/timer-tegra186: Use NOIRQ suspend/resume

From: Pohsun Su <[email protected]>

Update the Tegra186 Timer driver to use NOIRQ suspend/resume so that the watchdog is kept active during normal and late suspend/resume phases. This allows the watchdog to reset the device if any issues occurs during these suspend/resume phases.

---
 drivers/clocksource/timer-tegra186.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/clocksource/timer-tegra186.c +3 -2
index 7938fc4eb1a8..5ac724b83159 100644
@@ -589,8 +589,9 @@ static int __maybe_unused tegra186_timer_resume(struct device *dev)
 	return 0;
 }
 
-static SIMPLE_DEV_PM_OPS(tegra186_timer_pm_ops, tegra186_timer_suspend,
-			 tegra186_timer_resume);
+static const struct dev_pm_ops tegra186_timer_pm_ops = {
+	SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(tegra186_timer_suspend, tegra186_timer_resume)
+};
 
 static const struct tegra186_timer_soc tegra186_timer = {
 	.num_timers = 10,

---
base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
change-id: 20261116-tegra-clocksource-870a4fab36f1

Best regards,

Signature · 1 line
Jon Hunter <[email protected]>