OSDN Git Service

drm/i915: Use connector_type for printing in intel_connector_info, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 21 Jun 2016 10:00:38 +0000 (12:00 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 21 Jun 2016 11:54:18 +0000 (13:54 +0200)
commitee648a74db486360ad34d13b740f5237f191320f
treeb3f76b3ed3050c93b416afaf11cc716faa99158f
parent26c17cf65cd69733fde1487797d081fb54b08e05
drm/i915: Use connector_type for printing in intel_connector_info, v2.

Instead of looking at encoder->type, which may be set to UNKNOWN,
use connector->connector_type. Info cannot be printed for MST
connectors which may have a NULL encoder, return early in that case.

Changes since v1:
- Whitelist encoder types for HDMI and LVDS.
- Fix oops on MST.
- Do not list encoder types for eDP/DP, they're always valid.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/7cf34026-392d-01ec-e79b-e91919d1d783@linux.intel.com
drivers/gpu/drm/i915/i915_debugfs.c