summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dp.c
diff options
context:
space:
mode:
authorDhinakaran Pandiyan2018-02-23 23:15:20 +0100
committerRodrigo Vivi2018-02-27 21:06:37 +0100
commit3975f0aaa30371d711dc8d572f679314c415a58c (patch)
treec82cf9c6c59c300fd2b56aea20839dbf44fe8b81 /drivers/gpu/drm/i915/intel_dp.c
parentdrm/i915/dp: Remove redundant sleep after AUX transaction length check. (diff)
downloadkernel-qcow2-linux-3975f0aaa30371d711dc8d572f679314c415a58c.tar.gz
kernel-qcow2-linux-3975f0aaa30371d711dc8d572f679314c415a58c.tar.xz
kernel-qcow2-linux-3975f0aaa30371d711dc8d572f679314c415a58c.zip
drm/i915/dp: Move comment about hw timeout to the right place.
No functional change. Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Reviewed-by: David Weinehall <david.weinehall@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180223221520.18464-6-dhinakaran.pandiyan@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 41b0e27a157c..909311823595 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1152,14 +1152,14 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,
DP_AUX_CH_CTL_TIME_OUT_ERROR |
DP_AUX_CH_CTL_RECEIVE_ERROR);
- if (status & DP_AUX_CH_CTL_TIME_OUT_ERROR)
- continue;
-
/* DP CTS 1.2 Core Rev 1.1, 4.2.1.1 & 4.2.1.2
* 400us delay required for errors and timeouts
* Timeout errors from the HW already meet this
* requirement so skip to next iteration
*/
+ if (status & DP_AUX_CH_CTL_TIME_OUT_ERROR)
+ continue;
+
if (status & DP_AUX_CH_CTL_RECEIVE_ERROR) {
usleep_range(400, 500);
continue;