drm/i915: Fix i915_display_info output when connectors are not active
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 29 Mar 2024 01:23:31 +0000 (03:23 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 6 Apr 2024 00:22:17 +0000 (03:22 +0300)
commitaf72a61ddb4923aa1b5a3b49a0fcc3098ff3781d
treed043cc53e913fdc84a206aa4a3b57dec4d5e7ff6
parent6809f9246d43f7cb07310ca6a3deb7aa1c0ea938
drm/i915: Fix i915_display_info output when connectors are not active

Currently intel_connector_info(), which prints the per-connector
output for i915_display_info, just bails out early if the connector
doesn't have a current encoder. That leads to very confusing output
where some of your connected (and properly detected) outputs appear
to have no enumerated modes.

Get rid of the encoder stuff and just rely on the connector itself
so that the output is always consistent.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240329012331.29281-1-ville.syrjala@linux.intel.com
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
drivers/gpu/drm/i915/display/intel_display_debugfs.c