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

Commit cb5e134e authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm/sde: avoid frame done event during autorefresh



Autorefresh enabled configuration updates the pending
kickoff count once and receives multiple pp_done
interrupts. Avoid frame done event trigger on these
multiple interrupts if there is no pending frame.

Change-Id: I03e4cd5758c958be27af05bd2ecdbb6fac5e9354
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 35d3c928
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -197,7 +197,8 @@ static void sde_encoder_phys_cmd_pp_tx_done_irq(void *arg, int irq_idx)
	SDE_ATRACE_BEGIN("pp_done_irq");

	/* notify all synchronous clients first, then asynchronous clients */
	if (phys_enc->parent_ops.handle_frame_done)
	if (phys_enc->parent_ops.handle_frame_done &&
	    atomic_read(&phys_enc->pending_kickoff_cnt))
		phys_enc->parent_ops.handle_frame_done(phys_enc->parent,
				phys_enc, event);