drm/i915: Favor last VBT child device with conflicting AUX ch/DDC pin
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Oct 2019 20:20:30 +0000 (23:20 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 16 Oct 2019 17:56:50 +0000 (10:56 -0700)
commit0336ab580878f4c5663dfa2b66095821fdc3e588
tree9546d2f90efebf5c78dfbb17ff87fdf702d94da7
parent128260a41eeba4dd8d4433eab96aeeb7192392a4
drm/i915: Favor last VBT child device with conflicting AUX ch/DDC pin

The first come first served apporoach to handling the VBT
child device AUX ch conflicts has backfired. We have machines
in the wild where the VBT specifies both port A eDP and
port E DP (in that order) with port E being the real one.

So let's try to flip the preference around and let the last
child device win once again.

Cc: stable@vger.kernel.org
Cc: Jani Nikula <jani.nikula@intel.com>
Tested-by: Masami Ichikawa <masami256@gmail.com>
Tested-by: Torsten <freedesktop201910@liggy.de>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111966
Fixes: 36a0f92020dc ("drm/i915/bios: make child device order the priority order")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191011202030.8829-1-ville.syrjala@linux.intel.com
Acked-by: Jani Nikula <jani.nikula@intel.com>
(cherry picked from commit 41e35ffb380bde1379e4030bb5b2ac824d5139cf)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_bios.c