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

Commit 7f082228 authored by Vijay Navnath Kamble's avatar Vijay Navnath Kamble
Browse files

msm: mdss: Add video mode panel support for MDP3 driver



Add support to create retire timeline for video mode
panels.

Change-Id: Ie7d7827980675646f5593f99a86064fe7ddedd9b
Signed-off-by: default avatarVijay Navnath Kamble <vkambl@codeaurora.org>
parent 7a6e9213
Loading
Loading
Loading
Loading
+13 −13
Original line number Diff line number Diff line
@@ -2976,6 +2976,7 @@ static int mdp3_vsync_retire_setup(struct msm_fb_data_type *mfd)
		return -ENOMEM;
	}

	if (mfd->panel_info->type == MIPI_CMD_PANEL) {
		/* Add retire vsync handler */
		retire_client.handler = mdp3_vsync_retire_handle_vsync;
		retire_client.arg = mdp3_session;
@@ -2983,7 +2984,9 @@ static int mdp3_vsync_retire_setup(struct msm_fb_data_type *mfd)
		if (mdp3_session->dma)
			mdp3_session->dma->retire_client = retire_client;

	INIT_WORK(&mdp3_session->retire_work, mdp3_vsync_retire_work_handler);
		INIT_WORK(&mdp3_session->retire_work,
			mdp3_vsync_retire_work_handler);
	}

	return 0;
}
@@ -3162,14 +3165,11 @@ int mdp3_ctrl_init(struct msm_fb_data_type *mfd)
	mdp3_session->vsync_before_commit = true;
	mdp3_session->dyn_pu_state = mfd->panel_info->partial_update_enabled;

	if (mfd->panel_info->mipi.dms_mode ||
			mfd->panel_info->type == MIPI_CMD_PANEL) {
	rc = mdp3_vsync_retire_setup(mfd);
	if (IS_ERR_VALUE(rc)) {
		pr_err("unable to create vsync timeline\n");
		goto init_done;
	}
	}
init_done:
	if (IS_ERR_VALUE(rc))
		kfree(mdp3_session);