]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Fix possible CRTC mask for RGB outputs
authorThierry Reding <treding@nvidia.com>
Fri, 10 Jan 2014 15:56:06 +0000 (16:56 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 14 Jan 2014 13:35:56 +0000 (14:35 +0100)
commit2de5d7ada356ab98892f4890e8f3e8becb5bcd53
tree3fefaa834f8e42e7391deb36d7ab0f9f6c8808d0
parent2016c35392abab06aeebe2dcea68d85bf1141290
drm/tegra: Fix possible CRTC mask for RGB outputs

The mask of possible CRTCs that an output (DRM encoder) can be attached
to is relative to the position within the DRM device's list of CRTCs.
Deferred probing can cause this to not match the pipe number associated
with a CRTC. Use the newly introduced drm_crtc_mask() to compute the
mask by looking up the proper index of the given CRTC in the list.

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