drm/i915: Fix psr sink status report.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 20 Jul 2018 00:31:55 +0000 (17:31 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 20 Jul 2018 17:24:21 +0000 (10:24 -0700)
commit7a72c78bdd0a1ea1d879610542679cc680398220
tree9ee55eb23004832cac65f53b5df139f7046c2b1c
parent6bd31b3798c83b611737097d98008663a2f5d065
drm/i915: Fix psr sink status report.

First of all don't try to read dpcd if PSR is not even supported.

But also, if read failed return -EIO instead of reporting via a
backchannel.

v2: fix dev_priv: At this level m->private is the connector. (CI/DK)
    don't convert dpcd read errors to EIO. (DK)

Fixes: 5b7b30864d1d ("drm/i915/psr: Split sink status into a separate debugfs node")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180720003155.16290-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/i915_debugfs.c