Skip to content

Commit

Permalink
drm/tegra: Fix possible CRTC mask for RGB outputs
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thierryreding committed Jan 14, 2014
1 parent 1450991 commit 456ac56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tegra/rgb.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc)
* RGB outputs are an exception, so we make sure they can be attached
* to only their parent display controller.
*/
rgb->output.encoder.possible_crtcs = 1 << dc->pipe;
rgb->output.encoder.possible_crtcs = drm_crtc_mask(&dc->base);

return 0;
}
Expand Down

0 comments on commit 456ac56

Please sign in to comment.