drm: plane: Clear plane.crtc and plane.fb after disable_plane()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 14 Dec 2011 22:11:45 +0000 (00:11 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:28:56 +0000 (12:28 +0300)
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>
Acked-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/gpu/drm/drm_crtc.c

index 7140b66..7eecf73 100644 (file)
@@ -1682,6 +1682,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;
        }