]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firmware: arm_scmi: Allow PINCTRL_REQUEST to return EOPNOTSUPP
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 23 Mar 2026 19:01:37 +0000 (22:01 +0300)
committerLinus Walleij <linusw@kernel.org>
Tue, 24 Mar 2026 12:50:30 +0000 (13:50 +0100)
The SCMI protocol specification says that the PINCTRL_REQUEST and
PINCTRL_RELEASE commands are optional.  So if the SCMI server returns
-EOPNOTSUPP, then treat that as success and continue.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Sudeep Holla <sudeep.holla@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/firmware/arm_scmi/pinctrl.c

index a020e23d7c49abc87fc63a552a4aa7a8efcdfb5e..42cb1aef1fe1e82285bf355928533f32d91c9135 100644 (file)
@@ -578,6 +578,8 @@ static int scmi_pinctrl_request_free(const struct scmi_protocol_handle *ph,
        tx->flags = cpu_to_le32(type);
 
        ret = ph->xops->do_xfer(ph, t);
+       if (ret == -EOPNOTSUPP)
+               ret = 0;
        ph->xops->xfer_put(ph, t);
 
        return ret;