浏览代码

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>
Thierry Reding 10 年之前
父节点
当前提交
332bbe7003
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      drivers/gpu/drm/tegra/dc.c

+ 3 - 1
drivers/gpu/drm/tegra/dc.c

@@ -997,8 +997,10 @@ static void tegra_crtc_reset(struct drm_crtc *crtc)
 	crtc->state = NULL;
 	crtc->state = NULL;
 
 
 	state = kzalloc(sizeof(*state), GFP_KERNEL);
 	state = kzalloc(sizeof(*state), GFP_KERNEL);
-	if (state)
+	if (state) {
 		crtc->state = &state->base;
 		crtc->state = &state->base;
+		crtc->state->crtc = crtc;
+	}
 }
 }
 
 
 static struct drm_crtc_state *
 static struct drm_crtc_state *