From 1f23cf5238bed751607159301d87df82f6f99034 Mon Sep 17 00:00:00 2001 From: Stanislav Lisovskiy Date: Mon, 2 Sep 2019 14:17:55 +0300 Subject: [PATCH] drm/i915: List modes, regardless of encoder presence In certain situations encoder might be not present for connector, however might be useful to displat probed modes for the connector, if any. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/i915_debugfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index f6f6e5b78e97..b5f87b1f54d6 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -2912,6 +2912,10 @@ static void intel_connector_info(struct seq_file *m, drm_get_subpixel_order_name(connector->display_info.subpixel_order)); seq_printf(m, "\tCEA rev: %d\n", connector->display_info.cea_rev); + seq_printf(m, "\tmodes:\n"); + list_for_each_entry(mode, &connector->modes, head) + intel_seq_print_mode(m, 2, mode); + if (!intel_encoder) return; @@ -2935,10 +2939,6 @@ static void intel_connector_info(struct seq_file *m, default: break; } - - seq_printf(m, "\tmodes:\n"); - list_for_each_entry(mode, &connector->modes, head) - intel_seq_print_mode(m, 2, mode); } static const char *plane_type(enum drm_plane_type type) -- 2.17.1