drm/i915/gsc: Fix error code in intel_gsc_uc_heci_cmd_submit_nonpriv()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 6 Jun 2023 08:22:07 +0000 (11:22 +0300)
committerAndi Shyti <andi.shyti@linux.intel.com>
Thu, 8 Jun 2023 00:11:04 +0000 (02:11 +0200)
commit24335848e543dc95c9e2ffa0108d879ffefd0442
treed6b6b1315503a07e98d37c4fe3fda7b4facd6c8e
parent589f4924e815559282e7c9f2854cd6b53ee9d6af
drm/i915/gsc: Fix error code in intel_gsc_uc_heci_cmd_submit_nonpriv()

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 <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
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c