drm: plane: Clear plane.crtc and plane.fb after disable_plane()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 19 Dec 2011 22:06:43 +0000 (00:06 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Dec 2011 10:03:50 +0000 (10:03 +0000)
These are the only indication to user space that the plane was disabled.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c

index e05d997..d9bf9d8 100644 (file)
@@ -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;
        }