Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ed8f310 authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: qcom: update RPMH to allow RPMH_AWAKE_STATE requests



Allow RPMH to also send awake requests (active + wake) to the mailbox.
The mailbox will only entertain the request if there are no AMC TCSes
available to send active votes.

Change-Id: Id04cc2120cc9bd46212815766b52639f7948efbf
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 21c17886
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -262,8 +262,8 @@ int __rpmh_write(struct rpmh_client *rc, enum rpmh_state state,

	rpm_msg->msg.state = state;

	/* Send to mailbox only if active */
	if (state == RPMH_ACTIVE_ONLY_STATE) {
	/* Send to mailbox only if active or awake */
	if (state == RPMH_ACTIVE_ONLY_STATE || state == RPMH_AWAKE_STATE) {
		ret = mbox_send_message(rc->chan, &rpm_msg->msg);
		if (ret > 0)
			ret = 0;