mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-23 18:32:07 +01:00
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:
parent
23e2b76922
commit
eb7469eb1a
@ -35,6 +35,7 @@ static const struct error_code scmi_linux_errmap[] = {
|
|||||||
{ .scmi = SCMI_GENERIC_ERROR, .errno = -EIO, },
|
{ .scmi = SCMI_GENERIC_ERROR, .errno = -EIO, },
|
||||||
{ .scmi = SCMI_HARDWARE_ERROR, .errno = -EREMOTEIO, },
|
{ .scmi = SCMI_HARDWARE_ERROR, .errno = -EREMOTEIO, },
|
||||||
{ .scmi = SCMI_PROTOCOL_ERROR, .errno = -EPROTO, },
|
{ .scmi = SCMI_PROTOCOL_ERROR, .errno = -EPROTO, },
|
||||||
|
{ .scmi = SCMI_IN_USE, .errno = -EADDRINUSE, },
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -40,6 +40,7 @@ enum scmi_status_code {
|
|||||||
SCMI_GENERIC_ERROR = -8,
|
SCMI_GENERIC_ERROR = -8,
|
||||||
SCMI_HARDWARE_ERROR = -9,
|
SCMI_HARDWARE_ERROR = -9,
|
||||||
SCMI_PROTOCOL_ERROR = -10,
|
SCMI_PROTOCOL_ERROR = -10,
|
||||||
|
SCMI_IN_USE = -11,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user