OSDN Git Service

drm/tegra: dc: Do not register DC without primary plane
authorThierry Reding <treding@nvidia.com>
Fri, 21 Sep 2018 10:27:42 +0000 (12:27 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 26 Sep 2018 14:03:51 +0000 (16:03 +0200)
commit759d706f7cb4adbec1c222f7550dc8fa2683c089
tree2f70d5ae22a0452844bd301f9fe3b83318dca64b
parent47022003f94d1eecf49b9b7a7804814faaea9f08
drm/tegra: dc: Do not register DC without primary plane

Tegra194 contains a fourth display controller that does not own any
windows. Therefore, we cannot currently assign a primary plane to it
which causes KMS to eventually crash. Do not register the display
controller if it owns no windows to work around this.

Note that we still have to enable and probe the display controller
because for some reason all display controllers need to be powered
(and/or clocked) before any registers can be accessed in any of the
display controllers.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c