drm/vblank: Document drm_crtc_vblank_restore constraints
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Feb 2021 10:15:23 +0000 (11:15 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Feb 2021 11:38:55 +0000 (12:38 +0100)
commitf66aaab828e726986d9d5daa2b637b2712464a15
treee6ae581e30780c387b21a44bf8189f8cd51c4781
parentc0f6f0c471a378a6da5ac99a086ba63e1a8570bb
drm/vblank: Document drm_crtc_vblank_restore constraints

I got real badly confused when trying to review a fix from Ville for
this. Let's try to document better what's required for this, and check
the minimal settings at runtime - we can't check ofc that there's
indeed no races in the driver callback.

Also noticed that the drm_vblank_restore version is unused, so lets
unexport that while at it.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209101523.2954281-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_vblank.c
include/drm/drm_vblank.h