Re: [PATCH v1] drm/i915: List modes, regardless of encoder presence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/09/2019 14:14, Stanislav Lisovskiy wrote:
In certain situations encoder might be not present for connector,
however might be useful to displat probed modes for the connector,

s/displat/display/


if any.

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@xxxxxxxxx>
Tested-by: Lionel Landwerlin <lionel.g.landwerlin@xxxxxxxxx>
---
  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 9798f27a697a..8fa0510e897f 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2574,6 +2574,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;
@@ -2597,10 +2601,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)


_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux