drm/i915/dp: Move DPCD dump to common code instead of PCH-only

No reason not to see this on g4x, after all.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Adam Jackson 2011-07-12 17:38:01 -04:00 committed by Keith Packard
parent 97cdd71010
commit 1b9be9d09d

View file

@ -1615,8 +1615,6 @@ ironlake_dp_detect(struct intel_dp *intel_dp)
sizeof (intel_dp->dpcd)); sizeof (intel_dp->dpcd));
if (ret && intel_dp->dpcd[DP_DPCD_REV] != 0) if (ret && intel_dp->dpcd[DP_DPCD_REV] != 0)
status = connector_status_connected; status = connector_status_connected;
DRM_DEBUG_KMS("DPCD: %hx%hx%hx%hx\n", intel_dp->dpcd[0],
intel_dp->dpcd[1], intel_dp->dpcd[2], intel_dp->dpcd[3]);
return status; return status;
} }
@ -1679,6 +1677,10 @@ intel_dp_detect(struct drm_connector *connector, bool force)
status = ironlake_dp_detect(intel_dp); status = ironlake_dp_detect(intel_dp);
else else
status = g4x_dp_detect(intel_dp); status = g4x_dp_detect(intel_dp);
DRM_DEBUG_KMS("DPCD: %hx%hx%hx%hx\n", intel_dp->dpcd[0],
intel_dp->dpcd[1], intel_dp->dpcd[2], intel_dp->dpcd[3]);
if (status != connector_status_connected) if (status != connector_status_connected)
return status; return status;