OSDN Git Service

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)
commit0d1d3e44653ff5e806b4007d0d952491d745cbbf
treed1c287d6558c9842f6038abbe4b33b6eb8163760
parent8480adacfd58c79d884aa17af77a7fa7efae7257
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