drm/i915/bios: iterate over child devices to initialize ddi_port_info
authorJani Nikula <jani.nikula@intel.com>
Fri, 22 Mar 2019 12:10:08 +0000 (14:10 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 25 Mar 2019 13:16:33 +0000 (15:16 +0200)
commitb024ab9b2d3aa1551ed0be371a01a0ba426bbb1f
treea2083c4d3234decd82a30ceff6d197a156406efb
parent32c13bcd3544405f3c37ae6130ab14b313294222
drm/i915/bios: iterate over child devices to initialize ddi_port_info

Iterate over child devices instead of ports in parse_ddi_ports() to
initialize ddi_port_info. We'll eventually need to decide some stuff
based on the child device order, which may be different from the port
order.

As a bonus, this allows better abstractions for e.g. dvo port mapping.

There's a subtle change in the DDC pin and AUX channel sanitization as
we change the order. Otherwise, this should not change behaviour.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190322121008.4456-1-jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c