From: Ville Syrjälä Date: Mon, 19 Dec 2011 22:06:43 +0000 (+0200) Subject: drm: plane: Clear plane.crtc and plane.fb after disable_plane() X-Git-Tag: upstream/snapshot3+hdmi~8389^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5e3b44c676be2dac97efd94e581e14a073e4ca7;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git drm: plane: Clear plane.crtc and plane.fb after disable_plane() These are the only indication to user space that the plane was disabled. Signed-off-by: Ville Syrjälä Acked-by: Jesse Barnes Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index e05d997..d9bf9d8 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -1684,6 +1684,8 @@ int drm_mode_setplane(struct drm_device *dev, void *data, /* No fb means shut it down */ if (!plane_req->fb_id) { plane->funcs->disable_plane(plane); + plane->crtc = NULL; + plane->fb = NULL; goto out; }