Skip to content

Commit

Permalink
drm/i915/gsc: Fix error code in intel_gsc_uc_heci_cmd_submit_nonpriv()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dan Carpenter authored and Andi Shyti committed Jun 8, 2023
1 parent 589f492 commit 2433584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ intel_gsc_uc_heci_cmd_submit_nonpriv(struct intel_gsc_uc *gsc,
if (++trials < 10)
goto retry;
else
err = EAGAIN;
err = -EAGAIN;
}
}
i915_gem_ww_ctx_fini(&ww);
Expand Down

0 comments on commit 2433584

Please sign in to comment.