drm/tegra: nvdec: Stop channel on suspend
authorDmitry Osipenko <digetx@gmail.com>
Tue, 30 Nov 2021 23:23:23 +0000 (02:23 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:07:08 +0000 (14:07 +0100)
commit28b16229dbf15b3dbbbc5247ac1c514b373964d3
tree1455ffb4c82ddefb226d393cd3f1dd15aa4cbca8
parent1e15f5b911d6a1b4a5677e88527610946bd314dd
drm/tegra: nvdec: 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/nvdec.c