summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-01-28 15:03:31 +0100
committerThierry Reding <treding@nvidia.com>2015-02-19 14:21:47 +0100
commit332bbe7003badae01fed55b11820fcd467b3bbf4 (patch)
tree02deb2437ec7d2977582b4b0c8f9d9ad9a5335eb /drivers/gpu/drm/tegra
parentdrm/tegra: dc: Reset state's active_changed field (diff)
downloadlinux-332bbe7003badae01fed55b11820fcd467b3bbf4.tar.xz
linux-332bbe7003badae01fed55b11820fcd467b3bbf4.zip
drm/tegra: dc: Wire up CRTC parent of atomic state
Store a pointer to the CRTC in its atomic state to make it easy for state handling code to get at the CRTC. Tested-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/dc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index ec84bd486561..2fd229366bb2 100644
--- a/drivers/gpu/drm/tegra/dc.c
+++ b/drivers/gpu/drm/tegra/dc.c
@@ -997,8 +997,10 @@ static void tegra_crtc_reset(struct drm_crtc *crtc)
crtc->state = NULL;
state = kzalloc(sizeof(*state), GFP_KERNEL);
- if (state)
+ if (state) {
crtc->state = &state->base;
+ crtc->state->crtc = crtc;
+ }
}
static struct drm_crtc_state *