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 <[email protected]> Reviewed-by: Alan Previn <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ZH7sr+Vs4zOQoouU@moroto
1 parent 589f492 commit 2433584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)