]> 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)
commit769f7af862726703ff49bd426a63527fb2b1f6cb
treedcac4a2fc449578a24062404f4199f9c6d609856
parentb076df792e67402d660662aacf6fcd107f91bf85
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