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

Commit 568d2b15 authored by Steve Cohen's avatar Steve Cohen
Browse files

disp: msm: fix data bus bandwidth vote units



Bandwidth vote values were being applied as Bytes-per-second but
the interconnect framework uses Kilobytes-per-second units. Fix
the error by using unit conversion macros provided by the
interconnect interface.

Change-Id: I8bdce2d35afb8d97f200ce40fc1defa8a3be1b75
Signed-off-by: default avatarSteve Cohen <cohens@codeaurora.org>
parent 3fd4d644
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -303,8 +303,9 @@ static int _sde_power_data_bus_set_quota(
	SDE_ATRACE_BEGIN("msm_bus_scale_req");
	for (i = 0; i < paths; i++) {
		if (pdbus->data_bus_hdl[i]) {
			rc = icc_set_bw(pdbus->data_bus_hdl[i], in_ab_quota,
					in_ib_quota);
			rc = icc_set_bw(pdbus->data_bus_hdl[i],
					Bps_to_icc(in_ab_quota),
					Bps_to_icc(in_ib_quota));
			if (rc)
				goto err;
		}
@@ -320,8 +321,8 @@ static int _sde_power_data_bus_set_quota(
	for (; i >= 0; --i)
		if (pdbus->data_bus_hdl[i])
			icc_set_bw(pdbus->data_bus_hdl[i],
				   pdbus->curr_val.ab,
				   pdbus->curr_val.ib);
				   Bps_to_icc(pdbus->curr_val.ab),
				   Bps_to_icc(pdbus->curr_val.ib));

	SDE_ATRACE_END("msm_bus_scale_req");
	pr_err("failed to set data bus vote ab=%llu ib=%llu rc=%d\n",