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

Commit 57d45921 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: fix issues with transition from LP3 to LP2"

parents 2bc58696 8389193e
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -1157,11 +1157,13 @@ int mdss_mdp_cmd_stop(struct mdss_mdp_ctl *ctl, int panel_power_state)
		} else {
			/*
			 * Transition from ultra low power to low power does
			 * not require any special handling. The clocks would
			 * not require any special handling. Just rest the
			 * intf_stopped flag so that the clocks would
			 * get turned on when the first update comes.
			 */
			pr_debug("%s: nothing to be done.\n", __func__);
			return 0;
			pr_debug("%s: reset intf_stopped flag.\n", __func__);
			ctx->intf_stopped = 0;
			goto end;
		}
	}

@@ -1197,7 +1199,6 @@ panel_events:
		WARN(ret, "intf %d unblank error (%d)\n", ctl->intf_num, ret);
	}

	ctx->panel_power_state = panel_power_state;

	if (!panel_off) {
		pr_debug("%s: cmd_stop with panel always on\n", __func__);
@@ -1213,6 +1214,8 @@ panel_events:
	ctl->remove_vsync_handler = NULL;

end:
	if (!IS_ERR_VALUE(ret))
		ctx->panel_power_state = panel_power_state;
	MDSS_XLOG(ctl->num, atomic_read(&ctx->koff_cnt), ctx->clk_enabled,
				ctx->rdptr_enabled, XLOG_FUNC_EXIT);
	pr_debug("%s:-\n", __func__);