mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
drm: disconnect plane from fb/crtc when disabled
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> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d8e70a254d
commit
a9971157b6
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ void drm_framebuffer_cleanup(struct drm_framebuffer *fb)
|
||||||
ret = plane->funcs->disable_plane(plane);
|
ret = plane->funcs->disable_plane(plane);
|
||||||
if (ret)
|
if (ret)
|
||||||
DRM_ERROR("failed to disable plane with busy fb\n");
|
DRM_ERROR("failed to disable plane with busy fb\n");
|
||||||
|
/* disconnect the plane from the fb and crtc: */
|
||||||
|
plane->fb = NULL;
|
||||||
|
plane->crtc = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue