@@ -680,23 +680,27 @@ bool lspcon_init(struct intel_digital_port *dig_port)
return false;
if (!lspcon_set_pcon_mode(lspcon)) {
- drm_err(&i915->drm, "LSPCON mode change to PCON failed\n");
+ drm_err(&i915->drm, "Failure: LSPCON init on port %c, mode change to PCON failed\n",
+ port_name(dig_port->base.port));
return false;
}
if (drm_dp_read_dpcd_caps(&intel_dp->aux, intel_dp->dpcd) != 0) {
- drm_err(&i915->drm, "LSPCON DPCD read failed\n");
+ drm_err(&i915->drm, "Failure: LSPCON init on port %c, DPCD caps read failed\n",
+ port_name(dig_port->base.port));
return false;
}
if (!lspcon_detect_vendor(lspcon)) {
- drm_err(&i915->drm, "LSPCON vendor detection failed\n");
+ drm_err(&i915->drm, "Failure: LSPCON init on port %c, vendor detection failed\n",
+ port_name(dig_port->base.port));
return false;
}
connector->ycbcr_420_allowed = true;
lspcon->active = true;
drm_dbg_kms(&i915->drm, "Success: LSPCON init\n");
+
return true;
}
@@ -718,13 +722,8 @@ void lspcon_resume(struct intel_digital_port *dig_port)
if (!intel_bios_encoder_is_lspcon(dig_port->base.devdata))
return;
- if (!lspcon->active) {
- if (!lspcon_init(dig_port)) {
- drm_err(&i915->drm, "LSPCON init failed on port %c\n",
- port_name(dig_port->base.port));
- return;
- }
- }
+ if (!lspcon->active && !lspcon_init(dig_port))
+ return;
expected_mode = lspcon_get_expected_mode(lspcon);
if (expected_mode == DRM_LSPCON_MODE_PCON)