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

Commit 2ce04bd9 authored by Ingrid Gallardo's avatar Ingrid Gallardo
Browse files

msm: mdss: add display thread for DCM mode



During DCM mode it is needed to keep display
thread to process display commands.

Change-Id: I39e56b79dc484f328a046a397f7416769453df3d
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
parent b05ec824
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2846,6 +2846,11 @@ int mdss_fb_dcm(struct msm_fb_data_type *mfd, int req_state)
	case DCM_UNBLANK:
		if (mfd->dcm_state == DCM_UNINIT &&
			mdss_fb_is_power_off(mfd) && mfd->mdp.on_fnc) {
			if (mfd->disp_thread == NULL) {
				ret = mdss_fb_start_disp_thread(mfd);
				if (ret < 0)
					return ret;
			}
			ret = mfd->mdp.on_fnc(mfd);
			if (ret == 0) {
				mfd->panel_power_state = MDSS_PANEL_POWER_ON;
@@ -2880,6 +2885,9 @@ int mdss_fb_dcm(struct msm_fb_data_type *mfd, int req_state)
				mfd->dcm_state = DCM_UNINIT;
			else
				pr_err("DCM_BLANK failed\n");

			if (mfd->disp_thread)
				mdss_fb_stop_disp_thread(mfd);
		}
		break;
	case DTM_ENTER: