[PATCH 3/8] drm/i915: Use EAGAIN instead EBUSY for aux retry.

Rodrigo Vivi
2015-11-21T00:46:25Z

Current EBUSY meaning is immediately retry, but this is
about to change. DRM aux transfer is about to change and
make EAGAIN the immediately retry and use EBUSY to wait
a bit for aux channels to recover for any error or wake up.

This has no functional change if the EAGAIN support is in
place already for drm aux transfer.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/i915/intel_dp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index bec443a..ed07f0a 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -835,7 +835,7 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,
last_status = status;
}

- ret = -EBUSY;
+ ret = -EAGAIN;
goto out;
}

@@ -890,7 +890,7 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,

if ((status & DP_AUX_CH_CTL_DONE) == 0) {
DRM_ERROR("dp_aux_ch not done status 0x%08x\n", status);
- ret = -EBUSY;
+ ret = -EAGAIN;
goto out;
}

--
2.4.3

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org