OSDN Git Service

drm/tegra: dc: Restore coupling of display controllers
authorThierry Reding <treding@nvidia.com>
Fri, 19 Mar 2021 07:06:37 +0000 (08:06 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 30 Mar 2021 17:40:43 +0000 (19:40 +0200)
commita31500fe7055451ed9043c8fff938dfa6f70ee37
tree5d9292b52fc2ed77ef6f6dd91b8b40c5ab0bf96a
parenta24f98176d1efae2c37d3438c57a624d530d9c33
drm/tegra: dc: Restore coupling of display controllers

Coupling of display controllers used to rely on runtime PM to take the
companion controller out of reset. Commit fd67e9c6ed5a ("drm/tegra: Do
not implement runtime PM") accidentally broke this when runtime PM was
removed.

Restore this functionality by reusing the hierarchical host1x client
suspend/resume infrastructure that's similar to runtime PM and which
perfectly fits this use-case.

Fixes: fd67e9c6ed5a ("drm/tegra: Do not implement runtime PM")
Reported-by: Dmitry Osipenko <digetx@gmail.com>
Reported-by: Paul Fertser <fercerpav@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c