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

Commit 114ef490 authored by Abhijith Desai's avatar Abhijith Desai
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>
Signed-off-by: default avatarAbhijith Desai <desaia@codeaurora.org>
parent b7dabd95
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2032,6 +2032,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_mode == BLANK_FLAG_LP) ||
		(blank_mode == BLANK_FLAG_ULP))) {
		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_mode == BLANK_FLAG_LP) {
			pr_debug("lp mode only valid for cmd mode panels\n");