All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm: disconnect plane from fb/crtc when disabled
@ 2011-12-14  2:19 Rob Clark
  2011-12-14  2:19 ` [PATCH 2/2] drm: add support for private planes Rob Clark
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Clark @ 2011-12-14  2:19 UTC (permalink / raw)
  To: dri-devel; +Cc: Rob Clark, patches

From: Rob Clark <rob@ti.com>

Since plane->fb and plane->crtc are set in drm_mode_setplane()
after update_plane(), They should be cleared after disable().

Signed-off-by: Rob Clark <rob@ti.com>
---
 drivers/gpu/drm/drm_crtc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index e2c9386..6dad421 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -348,6 +348,9 @@ void drm_framebuffer_cleanup(struct drm_framebuffer *fb)
 			ret = plane->funcs->disable_plane(plane);
 			if (ret)
 				DRM_ERROR("failed to disable plane with busy fb\n");
+			/* disconnect the plane from the fb and crtc: */
+			plane->fb = NULL;
+			plane->crtc = NULL;
 		}
 	}
 
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-05 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-14  2:19 [PATCH 1/2] drm: disconnect plane from fb/crtc when disabled Rob Clark
2011-12-14  2:19 ` [PATCH 2/2] drm: add support for private planes Rob Clark
2012-01-05  4:55   ` Rob Clark
2012-01-05 15:58     ` Jesse Barnes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.