Skip to content
Snippets Groups Projects
Commit d13a5c8c authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Olof Johansson
Browse files

soc: qcom: smd-rpm: Correct size of outgoing message


With the removal of VLAIS the size was incorrectly changed to only cover
the headers of the packet, resulting in "empty" requests being sent to
the RPM. Correct this so the entire message is transfered.

Fixes: 50e1b29b ("soc: qcom: smd: Remove use of VLAIS")
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarAndy Gross <agross@codeaurora.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 2bf8bda9
Branches
Tags
No related merge requests found
...@@ -132,7 +132,7 @@ int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm, ...@@ -132,7 +132,7 @@ int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm,
pkt->req.data_len = cpu_to_le32(count); pkt->req.data_len = cpu_to_le32(count);
memcpy(pkt->payload, buf, count); memcpy(pkt->payload, buf, count);
ret = qcom_smd_send(rpm->rpm_channel, pkt, sizeof(*pkt)); ret = qcom_smd_send(rpm->rpm_channel, pkt, size);
if (ret) if (ret)
goto out; goto out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment