clocksource/drivers/timer-tegra186: Use NOIRQ suspend/resume
Subsystems (2)
Jon Hunter
maintainerPATCH 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.
Signed-off-by Pohsun Su <[email protected]>
Signed-off-by Jon Hunter <[email protected]>
--- drivers/clocksource/timer-tegra186.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/clocksource/timer-tegra186.c +3 -2
@@ -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]>