soc: qcom: smd-rpm: Correct the active vs sleep state flagging
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Tue, 13 Oct 2015 20:57:43 +0000 (13:57 -0700)
committerAndy Gross <agross@codeaurora.org>
Wed, 14 Oct 2015 19:51:22 +0000 (14:51 -0500)
The BIT() was incorrectly inherited from family A and should not be used
on family B where the state is denoted by an enum.

Reported-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Tested-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/soc/qcom/smd-rpm.c

index d4cbaa3d462969b563578f76a8027d06700b0c19..1ee02d2587b2831819d7e183a3a4ccd210f61298 100644 (file)
@@ -126,7 +126,7 @@ int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm,
        pkt->hdr.length = cpu_to_le32(sizeof(struct qcom_rpm_request) + count);
 
        pkt->req.msg_id = cpu_to_le32(msg_id++);
-       pkt->req.flags = cpu_to_le32(BIT(state));
+       pkt->req.flags = cpu_to_le32(state);
        pkt->req.type = cpu_to_le32(type);
        pkt->req.id = cpu_to_le32(id);
        pkt->req.data_len = cpu_to_le32(count);