summaryrefslogtreecommitdiff
path: root/rust/helpers/err.c
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2025-10-24 09:26:08 -0700
committerLizhi Hou <lizhi.hou@amd.com>2025-10-24 13:02:09 -0700
commit41ee90230c571161a948f175134ca0e083de3ca2 (patch)
tree018c5cff8dade8c1a6d38f7a31d6c437288fdff2 /rust/helpers/err.c
parentb9e5e9d2c187b849e050d59823e8c834f78475ab (diff)
accel/amdxdna: Fix incorrect return value in aie2_hwctx_sync_debug_bo()
When the driver issues the SYNC_DEBUG_BO command, it currently returns 0 even if the firmware fails to execute the command. Update the driver to return -EINVAL in this case to properly indicate the failure. Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/dri-devel/aPsadTBXunUSBByV@stanley.mountain/ Fixes: 7ea046838021 ("accel/amdxdna: Support firmware debug buffer") Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20251024162608.1544842-1-lizhi.hou@amd.com
Diffstat (limited to 'rust/helpers/err.c')
0 files changed, 0 insertions, 0 deletions