]> Git Repo - linux.git/commitdiff
drm/i915/gsc: Fix error code in intel_gsc_uc_heci_cmd_submit_nonpriv()
authorDan Carpenter <[email protected]>
Tue, 6 Jun 2023 08:22:07 +0000 (11:22 +0300)
committerAndi Shyti <[email protected]>
Thu, 8 Jun 2023 00:11:04 +0000 (02:11 +0200)
This should return negative -EAGAIN instead of positive EAGAIN.

Fixes: e5e1e6d28ebc ("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
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c

index 0ad090304ca097b1aef8bb5b7b17b3d7890277d5..89ed5ee9cdedca4187e318bd937992e26201275c 100644 (file)
@@ -202,7 +202,7 @@ out_ww:
                        if (++trials < 10)
                                goto retry;
                        else
-                               err = EAGAIN;
+                               err = -EAGAIN;
                }
        }
        i915_gem_ww_ctx_fini(&ww);
This page took 0.052605 seconds and 4 git commands to generate.