瀏覽代碼

disp: msm: dsi: avoid PLL configure and toggle during TUI

The change ensures that during a Trusted UI case, configuring
and toggling the DSI PHY PLL is skipped.

Change-Id: I3246c8e5f01d47ac6fd58098f859ef8436a762bf
Signed-off-by: Satya Rama Aditya Pinapala <[email protected]>
Satya Rama Aditya Pinapala 4 年之前
父節點
當前提交
6bebbc2e05
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      msm/dsi/dsi_display.c

+ 6 - 0
msm/dsi/dsi_display.c

@@ -2767,6 +2767,9 @@ int dsi_display_phy_pll_toggle(void *priv, bool prepare)
 		return -EINVAL;
 	}
 
+	if (is_skip_op_required(display))
+		return 0;
+
 	rc = dsi_display_set_clk_src(display, !prepare);
 
 	m_ctrl = &display->ctrl[display->clk_master_idx];
@@ -2793,6 +2796,9 @@ int dsi_display_phy_configure(void *priv, bool commit)
 		return -EINVAL;
 	}
 
+	if (is_skip_op_required(display))
+		return 0;
+
 	m_ctrl = &display->ctrl[display->clk_master_idx];
 	if ((!m_ctrl->phy) || (!m_ctrl->ctrl)) {
 		DSI_ERR("[%s] PHY not found\n", display->name);