diff options
| -rw-r--r-- | drivers/gpu/drm/i915/intel_bios.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index c5c7530ba157..447b721c3be9 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c | |||
| @@ -1256,7 +1256,6 @@ static void parse_ddi_port(struct drm_i915_private *dev_priv, enum port port, | |||
| 1256 | return; | 1256 | return; |
| 1257 | 1257 | ||
| 1258 | aux_channel = child->aux_channel; | 1258 | aux_channel = child->aux_channel; |
| 1259 | ddc_pin = child->ddc_pin; | ||
| 1260 | 1259 | ||
| 1261 | is_dvi = child->device_type & DEVICE_TYPE_TMDS_DVI_SIGNALING; | 1260 | is_dvi = child->device_type & DEVICE_TYPE_TMDS_DVI_SIGNALING; |
| 1262 | is_dp = child->device_type & DEVICE_TYPE_DISPLAYPORT_OUTPUT; | 1261 | is_dp = child->device_type & DEVICE_TYPE_DISPLAYPORT_OUTPUT; |
| @@ -1303,9 +1302,15 @@ static void parse_ddi_port(struct drm_i915_private *dev_priv, enum port port, | |||
| 1303 | DRM_DEBUG_KMS("Port %c is internal DP\n", port_name(port)); | 1302 | DRM_DEBUG_KMS("Port %c is internal DP\n", port_name(port)); |
| 1304 | 1303 | ||
| 1305 | if (is_dvi) { | 1304 | if (is_dvi) { |
| 1306 | info->alternate_ddc_pin = map_ddc_pin(dev_priv, ddc_pin); | 1305 | ddc_pin = map_ddc_pin(dev_priv, child->ddc_pin); |
| 1307 | 1306 | if (intel_gmbus_is_valid_pin(dev_priv, ddc_pin)) { | |
| 1308 | sanitize_ddc_pin(dev_priv, port); | 1307 | info->alternate_ddc_pin = ddc_pin; |
| 1308 | sanitize_ddc_pin(dev_priv, port); | ||
| 1309 | } else { | ||
| 1310 | DRM_DEBUG_KMS("Port %c has invalid DDC pin %d, " | ||
| 1311 | "sticking to defaults\n", | ||
| 1312 | port_name(port), ddc_pin); | ||
| 1313 | } | ||
| 1309 | } | 1314 | } |
| 1310 | 1315 | ||
| 1311 | if (is_dp) { | 1316 | if (is_dp) { |
