]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add drm_plane_force_disable()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 3 Jun 2013 13:10:40 +0000 (16:10 +0300)
committerDave Airlie <airlied@gmail.com>
Mon, 17 Jun 2013 08:32:54 +0000 (18:32 +1000)
commitb6fbded70045bab6adfbd9eb5bc3f223ec363865
tree33c993cb831125d9c59dda1b011737cfb2be54ef
parent385d6eb22e0ccfc322cc216d82a7587997518552
drm: Add drm_plane_force_disable()

drm_plane_force_disable() will forcibly disable the plane even if user
had previously requested the plane to be enabled.

This can be used to force planes to be off when restoring the fbdev
mode.

The code was simply pulled from drm_framebuffer_remove(), which now
calls the new function as well.

v2: Check plane->fb in drm_plane_force_disable(), drop bogus comment
    about disabling crtc

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h