@@ -737,7 +737,6 @@ static void intel_dsi_pre_enable(struct intel_atomic_state *state,
737737{
738738 struct intel_dsi * intel_dsi = enc_to_intel_dsi (encoder );
739739 struct intel_crtc * crtc = to_intel_crtc (pipe_config -> uapi .crtc );
740- struct intel_connector * connector = to_intel_connector (conn_state -> connector );
741740 struct drm_i915_private * dev_priv = to_i915 (crtc -> base .dev );
742741 enum pipe pipe = crtc -> pipe ;
743742 enum port port ;
@@ -779,21 +778,10 @@ static void intel_dsi_pre_enable(struct intel_atomic_state *state,
779778 if (!IS_GEMINILAKE (dev_priv ))
780779 intel_dsi_prepare (encoder , pipe_config );
781780
781+ /* Give the panel time to power-on and then deassert its reset */
782782 intel_dsi_vbt_exec_sequence (intel_dsi , MIPI_SEQ_POWER_ON );
783-
784- /*
785- * Give the panel time to power-on and then deassert its reset.
786- * Depending on the VBT MIPI sequences version the deassert-seq
787- * may contain the necessary delay, intel_dsi_msleep() will skip
788- * the delay in that case. If there is no deassert-seq, then an
789- * unconditional msleep is used to give the panel time to power-on.
790- */
791- if (connector -> panel .vbt .dsi .sequence [MIPI_SEQ_DEASSERT_RESET ]) {
792- intel_dsi_msleep (intel_dsi , intel_dsi -> panel_on_delay );
793- intel_dsi_vbt_exec_sequence (intel_dsi , MIPI_SEQ_DEASSERT_RESET );
794- } else {
795- msleep (intel_dsi -> panel_on_delay );
796- }
783+ msleep (intel_dsi -> panel_on_delay );
784+ intel_dsi_vbt_exec_sequence (intel_dsi , MIPI_SEQ_DEASSERT_RESET );
797785
798786 if (IS_GEMINILAKE (dev_priv )) {
799787 glk_cold_boot = glk_dsi_enable_io (encoder );
@@ -827,7 +815,7 @@ static void intel_dsi_pre_enable(struct intel_atomic_state *state,
827815 msleep (20 ); /* XXX */
828816 for_each_dsi_port (port , intel_dsi -> ports )
829817 dpi_send_cmd (intel_dsi , TURN_ON , false, port );
830- intel_dsi_msleep ( intel_dsi , 100 );
818+ msleep ( 100 );
831819
832820 intel_dsi_vbt_exec_sequence (intel_dsi , MIPI_SEQ_DISPLAY_ON );
833821
@@ -949,7 +937,7 @@ static void intel_dsi_post_disable(struct intel_atomic_state *state,
949937 /* Assert reset */
950938 intel_dsi_vbt_exec_sequence (intel_dsi , MIPI_SEQ_ASSERT_RESET );
951939
952- intel_dsi_msleep ( intel_dsi , intel_dsi -> panel_off_delay );
940+ msleep ( intel_dsi -> panel_off_delay );
953941 intel_dsi_vbt_exec_sequence (intel_dsi , MIPI_SEQ_POWER_OFF );
954942
955943 intel_dsi -> panel_power_off_time = ktime_get_boottime ();
0 commit comments