From 6c75ae324daa7b5ea50c897678206d0967ffe975 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Wed, 5 Jun 2019 16:08:23 +0800 Subject: [PATCH] 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 --- msm/dsi/dsi_panel.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index 4a3625860f..120b539150 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -3474,9 +3474,12 @@ int dsi_panel_get_mode_count(struct dsi_panel *panel) 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 && - !panel->host_config.ext_bridge_mode) + !panel->host_config.ext_bridge_mode && + !panel->panel_mode_switch_enabled) count = SINGLE_MODE_SUPPORT; panel->num_timing_nodes = count;