mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 10:59:18 -04:00
drm/i915: Pimp encoder ddc_pin/aux_ch debug messages
Use encoder->name rather than port_name() in the debug messages so that they actually make more sense. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230216231312.32664-2-ville.syrjala@linux.intel.com Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
This commit is contained in:
@@ -747,16 +747,18 @@ enum aux_ch intel_dp_aux_ch(struct intel_encoder *encoder)
|
||||
|
||||
aux_ch = intel_bios_dp_aux_ch(encoder->devdata);
|
||||
if (aux_ch != AUX_CH_NONE) {
|
||||
drm_dbg_kms(&i915->drm, "using AUX %c for port %c (VBT)\n",
|
||||
aux_ch_name(aux_ch), port_name(port));
|
||||
drm_dbg_kms(&i915->drm, "[ENCODER:%d:%s] using AUX %c (VBT)\n",
|
||||
encoder->base.base.id, encoder->base.name,
|
||||
aux_ch_name(aux_ch));
|
||||
return aux_ch;
|
||||
}
|
||||
|
||||
aux_ch = (enum aux_ch)port;
|
||||
|
||||
drm_dbg_kms(&i915->drm,
|
||||
"using AUX %c for port %c (platform default)\n",
|
||||
aux_ch_name(aux_ch), port_name(port));
|
||||
"[ENCODER:%d:%s] using AUX %c (platform default)\n",
|
||||
encoder->base.base.id, encoder->base.name,
|
||||
aux_ch_name(aux_ch));
|
||||
|
||||
return aux_ch;
|
||||
}
|
||||
|
||||
@@ -2858,8 +2858,9 @@ static u8 intel_hdmi_ddc_pin(struct intel_encoder *encoder)
|
||||
ddc_pin = intel_bios_hdmi_ddc_pin(encoder->devdata);
|
||||
if (ddc_pin) {
|
||||
drm_dbg_kms(&dev_priv->drm,
|
||||
"Using DDC pin 0x%x for port %c (VBT)\n",
|
||||
ddc_pin, port_name(port));
|
||||
"[ENCODER:%d:%s] Using DDC pin 0x%x (VBT)\n",
|
||||
encoder->base.base.id, encoder->base.name,
|
||||
ddc_pin);
|
||||
return ddc_pin;
|
||||
}
|
||||
|
||||
@@ -2885,8 +2886,9 @@ static u8 intel_hdmi_ddc_pin(struct intel_encoder *encoder)
|
||||
ddc_pin = g4x_port_to_ddc_pin(dev_priv, port);
|
||||
|
||||
drm_dbg_kms(&dev_priv->drm,
|
||||
"Using DDC pin 0x%x for port %c (platform default)\n",
|
||||
ddc_pin, port_name(port));
|
||||
"[ENCODER:%d:%s] Using DDC pin 0x%x (platform default)\n",
|
||||
encoder->base.base.id, encoder->base.name,
|
||||
ddc_pin);
|
||||
|
||||
return ddc_pin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user