Skip to contentSkip to conversation

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

PATCH In review Bjorn Andersson 3 participants 3 messages Oct 29, 2015 – Oct 30, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 50e1b29b4438 ("soc: qcom: smd: Remove use of VLAIS")
Cc Stephen Boyd <[email protected]>
---
 drivers/soc/qcom/smd-rpm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/smd-rpm.c +1 -1
index 1ee02d2587b2..2969321e1b09 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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]>

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
#2 lore raw
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]>

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