soc: qcom: smd-rpm: Correct size of outgoing message
Subsystems (2)
PATCH 1/1 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.
--- drivers/soc/qcom/smd-rpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/smd-rpm.c +1 -1
@@ -132,7 +132,7 @@ int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm, pkt->req.data_len =cpu_to_le32 (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) goto out;
Signature · 1 line
2.4.2
Quoted 7 lines · Bjorn Andersson
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 50e1b29b4438 ("soc: qcom: smd: Remove use of VLAIS")Cc Stephen Boyd <[email protected]>Signed-off-by Bjorn Andersson <[email protected]>
I thought this was already merged though.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 5 lines · Stephen Boyd
Quoted 4 lines · Bjorn Andersson
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.
Quoted 7 lines
Quoted 3 lines
Fixes 50e1b29b4438 ("soc: qcom: smd: Remove use of VLAIS")Cc Stephen Boyd <[email protected]>Signed-off-by Bjorn Andersson <[email protected]>Reviewed-by Stephen Boyd <[email protected]>I thought this was already merged though.
I accidentally dropped my fixup for this during one of the rebases.
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project