soc: qcom: smd-rpm: Correct size of outgoing message
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Thu, 29 Oct 2015 22:09:54 +0000 (15:09 -0700)
committerOlof Johansson <olof@lixom.net>
Sat, 31 Oct 2015 01:51:20 +0000 (01:51 +0000)
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")
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/soc/qcom/smd-rpm.c

index 1ee02d2587b2831819d7e183a3a4ccd210f61298..2969321e1b095fa6869e23e95a6825748d8ed58d 100644 (file)
@@ -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;