OSDN Git Service

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)
commitaa649e875daf6919bae8d406f115d38a6f39e59c
treeae4006677d8b1d78b9c99c08e24602c659cd7937
parentb14892801078085cb54dcbe3389057e12c1746a2
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