]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/gpu/drm/drm_crtc.c
drm: Add a plane->reset hook
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 29 Jul 2014 13:32:37 +0000 (15:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 12:24:44 +0000 (14:24 +0200)
commit2a0d7cfd9482ca4c10a4d8794791760a6a7ce40c
tree3d6695d99ce206397a3b2b192152baab4e019156
parentcb597bb3a2fbfc871cc1c703fb330d247bd21394
drm: Add a plane->reset hook

In general having this can't hurt, and the atomic helpers will need
it to be able to reset the state objects properly. The overall idea
is to reset in the order pixels flow, so planes -> crtcs ->
encoders -> connectors.

v2: Squash in fixup from Ville to correctly deference struct drm_plane
instead of drm_crtc when walking the plane list. Fixes an oops in
driver init and resume.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h