Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1246139
| From | Bjorn Andersson <bjorn.andersson@sonymobile.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] soc: qcom: smd-rpm: Correct the active vs sleep state flagging |
| Date | 2015-10-13 23:00 +0200 |
| Message-ID | <qjePU-18U-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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> --- drivers/soc/qcom/smd-rpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c index b5feb58dbd9f..2969321e1b09 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, 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); -- 2.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] soc: qcom: smd-rpm: Correct the active vs sleep state flagging Bjorn Andersson <bjorn.andersson@sonymobile.com> - 2015-10-13 23:00 +0200 Re: [PATCH] soc: qcom: smd-rpm: Correct the active vs sleep state flagging Andy Gross <agross@codeaurora.org> - 2015-10-14 04:20 +0200 Re: [PATCH] soc: qcom: smd-rpm: Correct the active vs sleep state flagging Georgi Djakov <georgi.djakov@linaro.org> - 2015-10-14 09:30 +0200
csiph-web