From 87becf7541d237ae7b334635eb4441bee486ccba Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Mon, 20 Apr 2015 19:12:34 +0300 Subject: [PATCH] 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. Cc: Jani Nikula Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90060 Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_debugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 9c2b9e4..fbc1f39 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -4938,6 +4938,9 @@ static int i915_dpcd_show(struct seq_file *m, void *data) connector->connector_type != DRM_MODE_CONNECTOR_eDP) continue; + if (connector->status != connector_status_connected) + continue; + /* low tech for now */ if (WARN_ON(size > sizeof(buf))) continue; -- 1.9.1