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

Commit eadc3549 authored by David Dai's avatar David Dai Committed by Gerrit - the friendly Code Review server
Browse files

msm: msm_bus: Use rpmh_write for AWAKE_STATE requests



Use rpmh_write instead of rpmh_write_passthru for AWAKE_STATE
requests to display RSC. The rpmh_write_passthru API did not
allow the rpmh driver to keep track of msm_bus driver's vote and
there was potential for msm_bus wake votes in the tcs to be
overwritten in the event that a new awake/active vote was made
by a different client.

Change-Id: I8f16f059c65149b9090fecfecebd56ad615616c8
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent e4e90297
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -580,6 +580,10 @@ int msm_bus_commit_data(struct list_head *clist)
				cmdlist_wake, cmdlist_sleep, cur_bcm_clist);

	ret = rpmh_invalidate(cur_mbox);
	if (cur_rsc->rscdev->req_state == RPMH_AWAKE_STATE)
		ret = rpmh_write(cur_mbox, cur_rsc->rscdev->req_state,
						cmdlist_active, cnt_active);
	else
		ret = rpmh_write_passthru(cur_mbox, cur_rsc->rscdev->req_state,
						cmdlist_active, n_active);