drm/tegra: vic: Stop channel on suspend
authorDmitry Osipenko <digetx@gmail.com>
Tue, 30 Nov 2021 23:23:22 +0000 (02:23 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:07:08 +0000 (14:07 +0100)
commit1e15f5b911d6a1b4a5677e88527610946bd314dd
treeb37440ff04f57ffd790cb98b2667eaa99dd6dba2
parent2421b20d659069ed6435b27a919e627b74c27e7e
drm/tegra: vic: Stop channel on suspend

CDMA must be stopped before hardware is suspended. Add channel stopping
to RPM suspend callback. Add system level suspend-resume callbacks.

Runtime PM initialization is moved to host1x client init phase because
RPM callback now uses host1x channel that is available only when host1x
client is registered.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/vic.c