]> asedeno.scripts.mit.edu Git - linux.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)
commit89f6501825b5bae3d4aaa2447636f9d3a4287a75
treedcac4a2fc449578a24062404f4199f9c6d609856
parent5467a8b8da9890e6216dd786e7f65cce5f23d014
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