]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bios: parse SDVO device mapping from pre-parsed child devices
authorJani Nikula <jani.nikula@intel.com>
Thu, 28 Sep 2017 08:22:03 +0000 (11:22 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 10 Oct 2017 06:06:17 +0000 (09:06 +0300)
commit0ebdabe6126498f06cd1885dfbf658c46317041f
tree663447f27c1823e5a8d726945ca69c114c81c216
parentb3ca1f43b285dd74daa8ef87cce41bc50434a865
drm/i915/bios: parse SDVO device mapping from pre-parsed child devices

We parse and store the child devices in
parse_general_definitions(). There is no need to parse the VBT block
again for SDVO device mapping. Do the same as we do in
parse_ddi_ports().

We no longer have access to child device size at this stage, but we also
don't need to worry about reading past the child device anymore. Instead
of a child device size check, do a mild optimization by limiting the
parsing to gens 3 through 7.

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/c918d4173dd38a165295f1270cb16c2c01bd8cd1.1506586821.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_bios.c