From 5f5c9cdf3d0572eb833fb14552025416c8b8ba3e Mon Sep 17 00:00:00 2001 From: Christina Oliveira Date: Thu, 10 Mar 2022 16:37:17 -0800 Subject: [PATCH] disp: msm: sde: program master intf register for single intf This change adds the programming of the master interface register for single interface configurations. Setting this register is required by hw-fencing feature to distinguish primary interfaces vs wb. Change-Id: I84936ebd6a9f2d67cf98c19a51ce3a132c648a2d Signed-off-by: Ingrid Gallardo Signed-off-by: Christina Oliveira --- msm/sde/sde_hw_ctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msm/sde/sde_hw_ctl.c b/msm/sde/sde_hw_ctl.c index c6e4878580..dab3f8f63f 100644 --- a/msm/sde/sde_hw_ctl.c +++ b/msm/sde/sde_hw_ctl.c @@ -1003,6 +1003,8 @@ static int sde_hw_ctl_intf_cfg_v1(struct sde_hw_ctl *ctx, if (cfg->intf_count > 1) intf_master = BIT(cfg->intf_master - INTF_0); + else if (cfg->intf_count == 1) + intf_master = BIT(cfg->intf[0] - INTF_0); for (i = 0; i < cfg->wb_count; i++) { if (cfg->wb[i])