Browse Source

disp: msm: dsi: enable multi mode support for video mode panel

Multi-panel can't be supported by video panel, but multi panel
operating mode can be supported for video mode panel, so enable
multi-mode support for video mode panel for panel operating mode
switch.

Change-Id: I9a62ba0c880d13c7201235b9cb65728fa13e3232
Signed-off-by: Lei Chen <[email protected]>
Lei Chen 6 years ago
parent
commit
6c75ae324d
1 changed files with 5 additions and 2 deletions
  1. 5 2
      msm/dsi/dsi_panel.c

+ 5 - 2
msm/dsi/dsi_panel.c

@@ -3474,9 +3474,12 @@ int dsi_panel_get_mode_count(struct dsi_panel *panel)
 		goto error;
 		goto error;
 	}
 	}
 
 
-	/* No multiresolution support is available for video mode panels */
+	/* No multiresolution support is available for video mode panels.
+	 * Multi-mode is supported for video mode during POMS is enabled.
+	 */
 	if (panel->panel_mode != DSI_OP_CMD_MODE &&
 	if (panel->panel_mode != DSI_OP_CMD_MODE &&
-		!panel->host_config.ext_bridge_mode)
+		!panel->host_config.ext_bridge_mode &&
+		!panel->panel_mode_switch_enabled)
 		count = SINGLE_MODE_SUPPORT;
 		count = SINGLE_MODE_SUPPORT;
 
 
 	panel->num_timing_nodes = count;
 	panel->num_timing_nodes = count;