]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit618b67679ac420ab5aac5694a289803bdc724829
treea2083c4d3234decd82a30ceff6d197a156406efb
parent67889dbd9a9e44f166c3a55be55879910e5dedcb
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