]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't read dpcd for disconnected ports
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 15 May 2015 10:09:21 +0000 (13:09 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 09:25:57 +0000 (11:25 +0200)
commit2cecfaecb1f149ecd0135c4e4c68db0e917f53ae
tree7cb483b0a5fb7c695f670ca4b0c65c53ba501035
parent40ddc906b9c5c0ee039f260713e7de0b21147106
drm/i915: Don't read dpcd for disconnected ports

Reading from disconnected ports will spit out timeout error
on the dmesg. Skip the attempted read if the port is not
connected and avoid confusing users/testcases about
expected timeouts.

This new dpcd debugfs entry was introduced by commit efddb9b2d10b
("drm/i915: add i915 specific connector debugfs file for DPCD")

v2 by Jani: move the check at the top, out of the loop.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90060
Tested-by: yex.tian@intel.com
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Bob Paauwe <bob.j.paauwe@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c