From: Daniel Vetter Date: Wed, 24 May 2017 14:51:48 +0000 (+0200) Subject: drm: better document how to send out the crtc disable event X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8938d13585bc91e3c5217dc76534759eec2b6e69;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm: better document how to send out the crtc disable event The kernel doc explained what needs to happen, but not how to most easily accomplish that using the functions. Fix that. Cc: Boris Brezillon Reviewed-by: Boris Brezillon Reviewed-by: Neil Armstrong Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/20170524145212.27837-14-daniel.vetter@ffwll.ch --- diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index b6e3713bd7a9..629a5fe075b3 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -214,7 +214,9 @@ struct drm_crtc_state { * atomic commit. In that case the event can be send out any time * after the hardware has stopped scanning out the current * framebuffers. It should contain the timestamp and counter for the - * last vblank before the display pipeline was shut off. + * last vblank before the display pipeline was shut off. The simplest + * way to achieve that is calling drm_crtc_send_vblank_event() + * somewhen after drm_crtc_vblank_off() has been called. * * - For a CRTC which is enabled at the end of the commit (even when it * undergoes an full modeset) the vblank timestamp and counter must