]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/gpu/drm/tegra/dc.c
drm/tegra: dc: Consistently use the same pipe
authorThierry Reding <treding@nvidia.com>
Tue, 16 Dec 2014 15:03:13 +0000 (16:03 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 17 Dec 2014 13:27:36 +0000 (14:27 +0100)
commited7dae58de246790f394caea5ef7eecad0e83387
tree482dca8deef284ea1234fc8bcda4341ec8f77eda
parent96d3f91eb263d478777bb9bff1b1300e0c08c29e
drm/tegra: dc: Consistently use the same pipe

The hardware pipe numbers don't always match the DRM CRTC indices. This
can happen for example if the first display controller defers probe,
causing it to be registered with DRM after the second display
controller. When that happens the hardware pipe numbers and DRM CRTC
indices become different. Make sure that the CRTC index is always used
when accessing per-CRTC VBLANK data. This can be ensured by using the
drm_crtc_vblank_*() API, which will do the right thing automatically
given a struct drm_crtc *.

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