]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
firmware: scmi: Add error code IN_USE
authorPeng Fan <peng.fan@nxp.com>
Fri, 26 Sep 2025 16:06:17 +0000 (00:06 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 9 Oct 2025 20:16:11 +0000 (14:16 -0600)
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>
drivers/firmware/scmi/scmi_agent-uclass.c
include/scmi_protocols.h

index e7ec2c108e69022ff3744c0b9d26809171307bee..69a277e8786b46994ccb83a04c155175858791ad 100644 (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, },
 };
 
 /**
index 762a1032c37c45c1cf49d5eee22f8c2a2aa62410..95e0c3cce3b9d4430383bac0bcb0a541f4af13f6 100644 (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,
 };
 
 /*