diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-10-13 16:57:43 -0400 |
---|---|---|
committer | Andy Gross <agross@codeaurora.org> | 2015-10-14 15:51:22 -0400 |
commit | a8ddd1b998bdad9489876a3068cc45917bee5441 (patch) | |
tree | eccb932fd05e890a65f82ad6d7f5e2fed0fd04c1 /drivers/soc | |
parent | 6083096d961f3cf754c4da282179053f7b85ac16 (diff) |
soc: qcom: smd-rpm: Correct the active vs sleep state flagging
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>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/qcom/smd-rpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c index d4cbaa3d4629..1ee02d2587b2 100644 --- a/drivers/soc/qcom/smd-rpm.c +++ b/drivers/soc/qcom/smd-rpm.c | |||
@@ -126,7 +126,7 @@ int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm, | |||
126 | pkt->hdr.length = cpu_to_le32(sizeof(struct qcom_rpm_request) + count); | 126 | pkt->hdr.length = cpu_to_le32(sizeof(struct qcom_rpm_request) + count); |
127 | 127 | ||
128 | pkt->req.msg_id = cpu_to_le32(msg_id++); | 128 | pkt->req.msg_id = cpu_to_le32(msg_id++); |
129 | pkt->req.flags = cpu_to_le32(BIT(state)); | 129 | pkt->req.flags = cpu_to_le32(state); |
130 | pkt->req.type = cpu_to_le32(type); | 130 | pkt->req.type = cpu_to_le32(type); |
131 | pkt->req.id = cpu_to_le32(id); | 131 | pkt->req.id = cpu_to_le32(id); |
132 | pkt->req.data_len = cpu_to_le32(count); | 132 | pkt->req.data_len = cpu_to_le32(count); |