Skip to content

Commit bf1fbd1

Browse files
Dan Carpenterlinusw
authored andcommitted
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: 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>
1 parent f20e813 commit bf1fbd1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/firmware/arm_scmi/pinctrl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,8 @@ static int scmi_pinctrl_request_free(const struct scmi_protocol_handle *ph,
578578
tx->flags = cpu_to_le32(type);
579579

580580
ret = ph->xops->do_xfer(ph, t);
581+
if (ret == -EOPNOTSUPP)
582+
ret = 0;
581583
ph->xops->xfer_put(ph, t);
582584

583585
return ret;

0 commit comments

Comments
 (0)