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

Commit ba9acb0d 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: add display thread for DCM mode"

parents 32850fa7 2ce04bd9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2851,6 +2851,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;
@@ -2885,6 +2890,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: