drm/xe: Restore EIO errno return when GuC PC start fails
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 28 Mar 2025 18:17:52 +0000 (14:17 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 31 Mar 2025 15:25:22 +0000 (11:25 -0400)
commit3f2bdccbccdcb53b0d316474eafff2e3462a51ad
tree09ab0904aaf11c5020b943f49ed797708554b979
parentc4eac403519512aef12250cb93ebfdd0966d76f9
drm/xe: Restore EIO errno return when GuC PC start fails

Commit b4b05e53b550 ("drm/xe/guc_pc: Retry and wait longer for GuC PC
start"), leads to the following Smatch static checker warning:

        drivers/gpu/drm/xe/xe_guc_pc.c:1073 xe_guc_pc_start()
        warn: missing error code here? '_dev_err()' failed. 'ret' = '0'

Fixes: b4b05e53b550 ("drm/xe/guc_pc: Retry and wait longer for GuC PC start")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/intel-xe/1454a5f1-ee18-4df1-a6b2-a4a3dddcd1cb@stanley.mountain/
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250328181752.26677-1-rodrigo.vivi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_pc.c