]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: dc: Fix possible_crtcs mask for planes
authorThierry Reding <treding@nvidia.com>
Mon, 8 Jan 2018 15:11:00 +0000 (16:11 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 8 Jan 2018 15:24:05 +0000 (16:24 +0100)
commit55bfb2fcb2654559b576d3fc385cd0743489983f
treedcac4a2fc449578a24062404f4199f9c6d609856
parent276486251a9033afd902ea59a55feba49312476c
drm/tegra: dc: Fix possible_crtcs mask for planes

Cursor and overlay planes use a possible_crtcs mask based on the DC pipe
number. However, DRM requires each bit in the mask to correspond to the
index of the CRTC, which will be different from the DC pipe number for a
configuration where the first display controller is disabled, or where a
deferred probe leads to the first display controller being probed after
the first.

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