drm/msm: dpu: Move pm_runtime_(get|put) from vblank_enable
authorSean Paul <seanpaul@chromium.org>
Fri, 16 Nov 2018 18:42:27 +0000 (13:42 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:10:13 +0000 (13:10 -0500)
commitb77d0f0d4ee757e0a27a269a8b679108162f9bd2
tree9e1ae07710f8ec24861b59a3897567d8e70d9a5c
parent1dfdb0e107dbe6ebff3f6bbbe4aad0b5aa87bba4
drm/msm: dpu: Move pm_runtime_(get|put) from vblank_enable

There are 4 times that _dpu_crtc_vblank_enable_no_lock() is called:

1- crtc enable
2- crtc disable
3- crtc vblank enable
4- crtc vblank disable

When we enable or disable the crtc, we call drm_crtc_vblank_on and
drm_crtc_vblank_off respectively. That will gate vblank enables and
disables to only being called when the crtc is active. That means that
we can just enable/disable pm runtime in crtc enable/disable. This will
be beneficial in trying to eliminate blocking calls from the vblank call
chain.

Changes in v2:
- None

Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c