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

Commit f9ec3be3 authored by Wenjun Zhang's avatar Wenjun Zhang Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: SPI panel not support ULP mode on MSM8909W



SPI panel not support ULP mode in doze mode.

Change-Id: I7b998ba3b8f1dd87ec8ae432d77a295b509ea539
Signed-off-by: default avatarWenjun Zhang <wjzhan@codeaurora.org>
parent fc7eae29
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1979,6 +1979,14 @@ static int mdss_fb_blank_sub(int blank_mode, struct fb_info *info,
	 * supported for command mode panels. For all other panel, treat lp
	 * mode as full unblank and ulp mode as full blank.
	 */
	if ((mfd->panel_info->type == SPI_PANEL) &&
		((BLANK_FLAG_LP == blank_mode) ||
		(BLANK_FLAG_ULP == blank_mode))) {
		pr_debug("lp/ulp mode are not supported for SPI panels\n");
		if (mdss_fb_is_power_on_interactive(mfd))
			return 0;
	}

	if (mfd->panel_info->type != MIPI_CMD_PANEL) {
		if (BLANK_FLAG_LP == blank_mode) {
			pr_debug("lp mode only valid for cmd mode panels\n");