Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6d047bd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: Flush interface registers"

parents 53614e12 1a31dd46
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2921,11 +2921,14 @@ int mdss_mdp_display_commit(struct mdss_mdp_ctl *ctl, void *arg)

		mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_TOP, ctl->opmode);
		ctl->flush_bits |= BIT(17);	/* CTL */
		ctl->flush_bits |= BIT(31) >> (ctl->intf_num - MDSS_MDP_INTF0);

		if (sctl) {
			mdss_mdp_ctl_write(sctl, MDSS_MDP_REG_CTL_TOP,
					sctl->opmode);
			sctl->flush_bits |= BIT(17);
			sctl->flush_bits |= BIT(31) >>
				(sctl->intf_num - MDSS_MDP_INTF0);
		}
		ATRACE_END("mixer_programming");
	}
+3 −2
Original line number Diff line number Diff line
@@ -585,7 +585,7 @@ static int mdss_mdp_writeback_display(struct mdss_mdp_ctl *ctl, void *arg)
{
	struct mdss_mdp_writeback_ctx *ctx;
	struct mdss_mdp_writeback_arg *wb_args;
	u32 flush_bits, val, bit_off, reg_off;
	u32 flush_bits = 0, val, bit_off, reg_off;
	int ret;

	if (!ctl || !ctl->mdata)
@@ -635,7 +635,8 @@ static int mdss_mdp_writeback_display(struct mdss_mdp_ctl *ctl, void *arg)
	mdss_mdp_set_intr_callback(ctx->intr_type, ctx->intf_num,
		   mdss_mdp_writeback_intr_done, ctl);

	flush_bits = BIT(16); /* WB */
	flush_bits |= ctl->flush_reg_data;
	flush_bits |= BIT(16); /* WB */
	mdp_wb_write(ctx, MDSS_MDP_REG_WB_DST_ADDR_SW_STATUS, ctl->is_secure);
	mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_FLUSH, flush_bits);