Commit bf1fbd18 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Walleij
Browse files

firmware: arm_scmi: Allow PINCTRL_REQUEST to return EOPNOTSUPP



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: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarLinus Walleij <linusw@kernel.org>
Reviewed-by: default avatarSudeep Holla <sudeep.holla@kernel.org>
Signed-off-by: default avatarLinus Walleij <linusw@kernel.org>
parent f20e8132
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;