File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4753,14 +4753,13 @@ static void intel_edp_panel_vdd_sanitize(struct intel_dp *intel_dp)
4753
4753
void intel_dp_encoder_reset (struct drm_encoder * encoder )
4754
4754
{
4755
4755
struct drm_i915_private * dev_priv = to_i915 (encoder -> dev );
4756
- struct intel_digital_port * intel_dig_port = enc_to_dig_port (encoder );
4757
- struct intel_lspcon * lspcon = & intel_dig_port -> lspcon ;
4758
- struct intel_dp * intel_dp = & intel_dig_port -> dp ;
4756
+ struct intel_dp * intel_dp = enc_to_intel_dp (encoder );
4757
+ struct intel_lspcon * lspcon = dp_to_lspcon (intel_dp );
4759
4758
4760
4759
if (!HAS_DDI (dev_priv ))
4761
4760
intel_dp -> DP = I915_READ (intel_dp -> output_reg );
4762
4761
4763
- if (IS_GEN9 ( dev_priv ) && lspcon -> active )
4762
+ if (lspcon -> active )
4764
4763
lspcon_resume (lspcon );
4765
4764
4766
4765
if (to_intel_encoder (encoder )-> type != INTEL_OUTPUT_EDP )
Original file line number Diff line number Diff line change @@ -1089,6 +1089,12 @@ dp_to_dig_port(struct intel_dp *intel_dp)
1089
1089
return container_of (intel_dp , struct intel_digital_port , dp );
1090
1090
}
1091
1091
1092
+ static inline struct intel_lspcon *
1093
+ dp_to_lspcon (struct intel_dp * intel_dp )
1094
+ {
1095
+ return & dp_to_dig_port (intel_dp )-> lspcon ;
1096
+ }
1097
+
1092
1098
static inline struct intel_digital_port *
1093
1099
hdmi_to_dig_port (struct intel_hdmi * intel_hdmi )
1094
1100
{
You can’t perform that action at this time.
0 commit comments