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

Commit 1b8cc161 authored by Govinda Rajulu Chenna's avatar Govinda Rajulu Chenna Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dp: fix timeslot programming error for mst streams



Fix the error in programming timeslots when total slots are
more than 32.

CRs-Fixed: 2280286
Change-Id: I247f160c5e900fc3bc9cf44ed4310507edbe1a82
Signed-off-by: default avatarGovinda Rajulu Chenna <gchenna@codeaurora.org>
parent f333564a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1557,10 +1557,10 @@ static void dp_catalog_ctrl_channel_alloc(struct dp_catalog_ctrl *ctrl,

	ch_start_slot = ch_start_slot - 1;
	for (i = 0; i < tot_slot_cnt; i++) {
		if (ch_start_slot < 33) {
		if (ch_start_slot < 32) {
			slot_reg_1 |= BIT(ch_start_slot);
		} else {
			slot = ch_start_slot - 33;
			slot = ch_start_slot - 32;
			slot_reg_2 |= BIT(slot);
		}
		ch_start_slot++;