OSDN Git Service

drm/i915: Respect alternate_aux_channel for all DDI ports
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 11 Oct 2016 17:52:45 +0000 (20:52 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 21 Oct 2016 12:43:40 +0000 (15:43 +0300)
commit8f7ce038f1178057733b7e765bf9160a2f9be14b
tree8cf389eacda5846e97e3a73199c915c6a162c73c
parent465418c6064c88d4af555abe0480c417eb47eae3
drm/i915: Respect alternate_aux_channel for all DDI ports

The VBT provides the platform a way to mix and match the DDI ports vs.
AUX channels. Currently we only trust the VBT for DDI E, which has no
corresponding AUX channel of its own. However it is possible that some
board might use some non-standard DDI vs. AUX port routing even for
the other ports. Perhaps for signal routing reasons or something,
So let's generalize this and trust the VBT for all ports.

For now we'll limit this to DDI platforms, as we trust the VBT a bit
more there anyway when it comes to the DDI ports. I've structured
the code in a way that would allow us to easily expand this to
other platforms as well, by simply filling in the ddi_port_info.

v2: Drop whitespace changes, keep MISSING_CASE() for unknown
    aux ch assignment, include a commit message, include debug
    message during init

Cc: stable@vger.kernel.org
Cc: Maarten Maathuis <madman2003@gmail.com>
Tested-by: Maarten Maathuis <madman2003@gmail.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=97877
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1476208368-5710-2-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Jim Bride <jim.bride@linux.intel.com>
drivers/gpu/drm/i915/intel_dp.c