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

Commit f9116c90 authored by Sachin Bhayare's avatar Sachin Bhayare Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: fix NOC error in accessing accessing DMA status reg



In current implementation theres is a possibility that clk_off_work
will get scheduled twice after idle time out. When this happens
NOC error are observed in accessing DMA status register.

Fix issue by scheduling clk_off_work only once after each idle time out.

Change-Id: I4b6b2acb8f3260d281d5ca6ff9d54de7051e7b39
Signed-off-by: default avatarSachin Bhayare <sachin.bhayare@codeaurora.org>
parent 43ec4acf
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -300,11 +300,12 @@ void vsync_count_down(void *arg)
{
	struct mdp3_session_data *session = (struct mdp3_session_data *)arg;
	/* We are counting down to turn off clocks */
	if (atomic_read(&session->vsync_countdown) > 0)
	if (atomic_read(&session->vsync_countdown) > 0) {
		atomic_dec(&session->vsync_countdown);
		if (atomic_read(&session->vsync_countdown) == 0)
			schedule_work(&session->clk_off_work);
	}
}

void mdp3_ctrl_reset_countdown(struct mdp3_session_data *session,
		struct msm_fb_data_type *mfd)