Commit 3e037f9b authored by José Roberto de Souza's avatar José Roberto de Souza Committed by Rodrigo Vivi

drm/i915/debugfs: Do not print cached information of a disconnected sink

Besides of give the expected output of i915_display_info it will also
avoid some aux ch transactions that would timeout by obvious reasons.
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181030215750.28213-1-jose.souza@intel.com
parent 3b90946f
...@@ -3064,16 +3064,17 @@ static void intel_connector_info(struct seq_file *m, ...@@ -3064,16 +3064,17 @@ static void intel_connector_info(struct seq_file *m,
seq_printf(m, "connector %d: type %s, status: %s\n", seq_printf(m, "connector %d: type %s, status: %s\n",
connector->base.id, connector->name, connector->base.id, connector->name,
drm_get_connector_status_name(connector->status)); drm_get_connector_status_name(connector->status));
if (connector->status == connector_status_connected) {
seq_printf(m, "\tname: %s\n", connector->display_info.name); if (connector->status == connector_status_disconnected)
seq_printf(m, "\tphysical dimensions: %dx%dmm\n", return;
connector->display_info.width_mm,
connector->display_info.height_mm); seq_printf(m, "\tname: %s\n", connector->display_info.name);
seq_printf(m, "\tsubpixel order: %s\n", seq_printf(m, "\tphysical dimensions: %dx%dmm\n",
drm_get_subpixel_order_name(connector->display_info.subpixel_order)); connector->display_info.width_mm,
seq_printf(m, "\tCEA rev: %d\n", connector->display_info.height_mm);
connector->display_info.cea_rev); seq_printf(m, "\tsubpixel order: %s\n",
} drm_get_subpixel_order_name(connector->display_info.subpixel_order));
seq_printf(m, "\tCEA rev: %d\n", connector->display_info.cea_rev);
if (!intel_encoder) if (!intel_encoder)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment