drm/i915: Make intel_dp_is_edp() less specific
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 1 Nov 2013 18:32:08 +0000 (20:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 5 Nov 2013 06:59:40 +0000 (07:59 +0100)
commitf02586dfedf1dfae4f5ff7eb1990a2c4c56e1425
treeb2979d81d4b40e0baf2fcfcffd3fdc845082bdd2
parent78eb06c394da002aa7e059e84aa6aa58880b4bba
drm/i915: Make intel_dp_is_edp() less specific

All the bits in the VBT child device type have some speciifc meaning,
so looking for an exact match isn't always the right thing. On some
VLVs for example the device type for eDP panels is 0x1806.

If we mask out the bits that could concievably change between different
eDP panels, we are left with the set of bits that should still
tell us if the port is eDP or not.

v2: Use the named bits for VBT child device type

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71051
Tested-by: Robert Hooker <robert.hooker@canonical.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_bios.h
drivers/gpu/drm/i915/intel_dp.c
This page took 0.029466 seconds and 5 git commands to generate.