]> Git Repo - linux.git/commitdiff
drm/msm/disp/dpu1: program 3d_merge only if block is attached
authorKalyan Thota <[email protected]>
Fri, 2 Apr 2021 11:54:53 +0000 (04:54 -0700)
committerRob Clark <[email protected]>
Fri, 2 Apr 2021 15:23:41 +0000 (08:23 -0700)
Update the 3d merge as active in the data path only if
the hw block is selected in the configuration.

Reported-by: Stephen Boyd <[email protected]>
Fixes: 73bfb790ac78 ("msm:disp:dpu1: setup display datapath for SC7180 target")
Signed-off-by: Kalyan Thota <[email protected]>
Message-Id: <1617364493[email protected]>
Signed-off-by: Rob Clark <[email protected]>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c

index 8981cfa9dbc3722c757fabc4da1f90caa759d3a2..92e6f1b94738682c54e6b1fe6f085a6868846f01 100644 (file)
@@ -496,7 +496,9 @@ static void dpu_hw_ctl_intf_cfg_v1(struct dpu_hw_ctl *ctx,
 
        DPU_REG_WRITE(c, CTL_TOP, mode_sel);
        DPU_REG_WRITE(c, CTL_INTF_ACTIVE, intf_active);
-       DPU_REG_WRITE(c, CTL_MERGE_3D_ACTIVE, BIT(cfg->merge_3d - MERGE_3D_0));
+       if (cfg->merge_3d)
+               DPU_REG_WRITE(c, CTL_MERGE_3D_ACTIVE,
+                             BIT(cfg->merge_3d - MERGE_3D_0));
 }
 
 static void dpu_hw_ctl_intf_cfg(struct dpu_hw_ctl *ctx,
This page took 0.068731 seconds and 4 git commands to generate.