mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 02:14:58 +00:00
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>
This commit is contained in:
parent
6083096d96
commit
a8ddd1b998
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user