]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/dp/mst: Check peer device type before attempting EDID read
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 26 Oct 2016 09:05:55 +0000 (12:05 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Oct 2016 16:53:44 +0000 (18:53 +0200)
commit4da5caa6a6f82cda3193bca855235b87debf78bd
tree6ba1c8129beff272d08e6aab1c16367aeca02de5
parent36e3fa6a38e135e9478a2f75dec9bf6ff1e6480e
drm/dp/mst: Check peer device type before attempting EDID read

Only certain types of pdts have the DDC bus registered, so check for
that before we attempt the EDID read. Othwewise we risk playing around
with an i2c adapter that doesn't actually exist.

Cc: stable@vger.kernel.org
Cc: Carlos Santa <carlos.santa@intel.com>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Tested-by: Carlos Santa <carlos.santa@intel.com>
Tested-by: Kirill A. Shutemov <kirill@shutemov.name>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97666
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1477472755-15288-5-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_dp_mst_topology.c