]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: mdp5_crtc: Restore cursor state only if LM cursors are enabled
authorArchit Taneja <architt@codeaurora.org>
Fri, 27 Oct 2017 10:57:31 +0000 (16:27 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 28 Oct 2017 18:02:58 +0000 (14:02 -0400)
commit1811518d0cf7048f4f9fad7aa8d021aa035d2e92
treeae4006677d8b1d78b9c99c08e24602c659cd7937
parentf17db4fad609e6a7bd6fc97c03e562b0881d602d
drm/msm/mdp5: mdp5_crtc: Restore cursor state only if LM cursors are enabled

MDP5 on newer SoCs support cursor planes (i.e, cursor SSPPs). They are a
separate entity unlike the cursors within LM.

Do not try to restore the MDP5 LM cursor registers, or the corresponding
CTL bits if we are not using LM cursors.

Also, since we've introduced a new variable 'lm_cursor_enabled', we can
now use it to avoid creating a different sets of crtc_funcs for CRTCs
with LM cursors and CRTCs with cursor planes.

Fixes: "drm/msm/mdp5: restore cursor state when enabling crtc"
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c