firmware: scmi: Add error code IN_USE

In SCMI spec 3.2, there is an update:
Add IN_USE error code for usage with Pin control protocol

So add the error decoding for IN_USE.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Peng Fan 2025-09-27 00:06:17 +08:00 committed by Tom Rini
parent 23e2b76922
commit eb7469eb1a
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ static const struct error_code scmi_linux_errmap[] = {
{ .scmi = SCMI_GENERIC_ERROR, .errno = -EIO, },
{ .scmi = SCMI_HARDWARE_ERROR, .errno = -EREMOTEIO, },
{ .scmi = SCMI_PROTOCOL_ERROR, .errno = -EPROTO, },
{ .scmi = SCMI_IN_USE, .errno = -EADDRINUSE, },
};
/**

View File

@ -40,6 +40,7 @@ enum scmi_status_code {
SCMI_GENERIC_ERROR = -8,
SCMI_HARDWARE_ERROR = -9,
SCMI_PROTOCOL_ERROR = -10,
SCMI_IN_USE = -11,
};
/*