firmware: xilinx: Propagate actual error from feature check

When do_fw_call() fails in __do_feature_check_call(), propagate the
actual errno from zynqmp_pm_ret_code() instead of always returning
-EOPNOTSUPP. This gives callers more precise error information. Existing
callers only test ret < 0 and are unchanged by this.

Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@amd.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Prasanna Kumar T S M <ptsm@linux.microsoft.com>
Link: https://patch.msgid.link/20260724095352.2890326-3-jay.buddhabhatti@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
Jay Buddhabhatti 2026-07-24 02:53:52 -07:00 committed by Michal Simek
parent 1689ca12dd
commit 5b8c4b238b

View File

@ -251,11 +251,9 @@ static int __do_feature_check_call(const u32 api_id, u32 *ret_payload)
}
if (ret)
ret = -EOPNOTSUPP;
else
ret = ret_payload[1];
return ret;
return ret;
return ret_payload[1];
}
static int do_feature_check_call(const u32 api_id)