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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e5e3b44c676be2dac97efd94e581e14a073e4ca7;p=linux-beck.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 e05d99791544..d9bf9d88ff43 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; }