Explorar el Código

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 hace 4 años
padre
commit
6bebbc2e05
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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;
 		return -EINVAL;
 	}
 	}
 
 
+	if (is_skip_op_required(display))
+		return 0;
+
 	rc = dsi_display_set_clk_src(display, !prepare);
 	rc = dsi_display_set_clk_src(display, !prepare);
 
 
 	m_ctrl = &display->ctrl[display->clk_master_idx];
 	m_ctrl = &display->ctrl[display->clk_master_idx];
@@ -2793,6 +2796,9 @@ int dsi_display_phy_configure(void *priv, bool commit)
 		return -EINVAL;
 		return -EINVAL;
 	}
 	}
 
 
+	if (is_skip_op_required(display))
+		return 0;
+
 	m_ctrl = &display->ctrl[display->clk_master_idx];
 	m_ctrl = &display->ctrl[display->clk_master_idx];
 	if ((!m_ctrl->phy) || (!m_ctrl->ctrl)) {
 	if ((!m_ctrl->phy) || (!m_ctrl->ctrl)) {
 		DSI_ERR("[%s] PHY not found\n", display->name);
 		DSI_ERR("[%s] PHY not found\n", display->name);