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

Commit e0686328 authored by David Dai's avatar David Dai
Browse files

msm: msm_bus: Check active or dual vote when updating bw



Dual context clients are only check against recorded active
vote, causing some requests to be incorrectly ignored. Check
current dual or active bandwidth with respect to client type.

Change-Id: I0ff69b2552dc19fb3ac3d1eacecf93f83cf4564d
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent f3fbc3a3
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -1809,17 +1809,20 @@ static int update_bw_adhoc(struct msm_bus_client_handle *cl, u64 ab, u64 ib)

	msm_bus_dbg_rec_transaction(cl, ab, ib);

	if (cl->active_only) {
		if ((cl->cur_act_ib == ib) && (cl->cur_act_ab == ab)) {
			MSM_BUS_DBG("%s:no change in request", cl->name);
			goto exit_update_request;
		}

	if (cl->active_only) {
		act_ib = ib;
		act_ab = ab;
		dual_ib = 0;
		dual_ab = 0;
	} else {
		if ((cl->cur_dual_ib == ib) && (cl->cur_dual_ab == ab)) {
			MSM_BUS_DBG("%s:no change in request", cl->name);
			goto exit_update_request;
		}
		dual_ib = ib;
		dual_ab = ab;
		act_ib = 0;