Commit f8e14069 authored by Russell King's avatar Russell King

drm/armada: use drm_plane_force_disable() to disable the overlay plane

Use drm_plane_force_disable() to disable the overlay plane on a mode_set
rather than coding this ourselves.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 7c8f7e1a
...@@ -348,17 +348,11 @@ static void armada_drm_crtc_prepare(struct drm_crtc *crtc) ...@@ -348,17 +348,11 @@ static void armada_drm_crtc_prepare(struct drm_crtc *crtc)
/* /*
* If we have an overlay plane associated with this CRTC, disable * If we have an overlay plane associated with this CRTC, disable
* it before the modeset to avoid its coordinates being outside * it before the modeset to avoid its coordinates being outside
* the new mode parameters. DRM doesn't provide help with this. * the new mode parameters.
*/ */
plane = dcrtc->plane; plane = dcrtc->plane;
if (plane) { if (plane)
struct drm_framebuffer *fb = plane->fb; drm_plane_force_disable(plane);
plane->funcs->disable_plane(plane);
plane->fb = NULL;
plane->crtc = NULL;
drm_framebuffer_unreference(fb);
}
} }
/* The mode_config.mutex will be held for this call */ /* The mode_config.mutex will be held for this call */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment