Skip to content

Commit 2433584

Browse files
Dan CarpenterAndi Shyti
authored andcommitted
drm/i915/gsc: Fix error code in intel_gsc_uc_heci_cmd_submit_nonpriv()
This should return negative -EAGAIN instead of positive EAGAIN. Fixes: e5e1e6d ("drm/i915/pxp: Add MTL helpers to submit Heci-Cmd-Packet to GSC") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/ZH7sr+Vs4zOQoouU@moroto
1 parent 589f492 commit 2433584

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ intel_gsc_uc_heci_cmd_submit_nonpriv(struct intel_gsc_uc *gsc,
202202
if (++trials < 10)
203203
goto retry;
204204
else
205-
err = EAGAIN;
205+
err = -EAGAIN;
206206
}
207207
}
208208
i915_gem_ww_ctx_fini(&ww);

0 commit comments

Comments
 (0)