]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: Reset CTL blend registers before configuring them
authorArchit Taneja <architt@codeaurora.org>
Thu, 23 Mar 2017 10:28:16 +0000 (15:58 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 8 Apr 2017 10:59:36 +0000 (06:59 -0400)
commitc1a12c647dc2bc72f787499a945a01721ec5a341
treed1c287d6558c9842f6038abbe4b33b6eb8163760
parentd034c48621edeb987e454dc9ca73af57a9ab8250
drm/msm/mdp5: Reset CTL blend registers before configuring them

Assigning LMs dynamically to CRTCs results in REG_MDP5_CTL_LAYER_REGs
and REG_MDP5_CTL_LAYER_EXT_REGs maintaining old values for a LM that
isn't used by our CTL instance anymore.

Clear the ctl's CTL_LAYER_REG and CTL_LAYER_EXT_REGs for all LM
instances. The ones that need to be configured are configured later
in this func.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c