clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG
authorTony Lindgren <tony@atomide.com>
Thu, 15 Apr 2021 08:55:06 +0000 (11:55 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Jun 2021 12:14:14 +0000 (14:14 +0200)
commit9517c577f9f722270584cfb1a7b4e1354e408658
tree74447ba0700e24b2ee3a2fa0cbe0f01d0a614dcb
parent75ac5cc2ee6b499bc0225ad67302271772929f19
clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG

As we are using cpu_pm to save and restore context, we must also save and
restore the timer sysconfig register TIOCP_CFG. This is needed because
we are not calling PM runtime functions at all with cpu_pm.

Fixes: b34677b0999a ("clocksource/drivers/timer-ti-dm: Implement cpu_pm notifier for context save and restore")
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Adam Ford <aford173@gmail.com>
Cc: Andreas Kemnade <andreas@kemnade.info>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210415085506.56828-1-tony@atomide.com
drivers/clocksource/timer-ti-dm.c
include/clocksource/timer-ti-dm.h