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

Commit 8eaad030 authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: rpmh: disallow active state requests in solver mode.



SDM855 has separate TCS for SDE to send active mode or AMC requests.
When the solver mode is engaged, disallow the use of the RSC from Linux.

Change-Id: I9c696d04e409cde2485dce37e84f9208742acded
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent cb57e6b4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -285,7 +285,8 @@ static int check_ctrlr_state(struct rpmh_client *rc, enum rpmh_state state)

	/* Do not allow setting active votes when in solver mode */
	spin_lock_irqsave(&rpm->lock, flags);
	if (rpm->in_solver_mode && state == RPMH_AWAKE_STATE)
	if (rpm->in_solver_mode &&
	    (state == RPMH_AWAKE_STATE || state == RPMH_ACTIVE_ONLY_STATE))
		ret = -EBUSY;
	spin_unlock_irqrestore(&rpm->lock, flags);