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

Commit 5ba18584 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: Register IRQ for CWB only for valid HW index



Concurrent writeback is currently supported only from LM2-PP2
indexes. If lower index LM/PP is selected then valid IRQ is not
registered resulting in error logging though non-fatal. Fix
this by registering CWB IRQ only if its valid.

Change-Id: I83831fa610730d4bea3f3ad9b96732126b6b2127
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent b0e5566f
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1126,6 +1126,7 @@ static void sde_encoder_phys_wb_irq_ctrl(
			atomic_dec_return(&phys->wbirq_refcount);

		for (index = 0; index < CRTC_DUAL_MIXERS; index++)
			if (cwb_irq_tbl[index + pp] != SDE_NONE)
				sde_encoder_helper_register_irq(phys,
					cwb_irq_tbl[index + pp]);
	} else if (!enable &&
@@ -1135,6 +1136,7 @@ static void sde_encoder_phys_wb_irq_ctrl(
			atomic_inc_return(&phys->wbirq_refcount);

		for (index = 0; index < CRTC_DUAL_MIXERS; index++)
			if (cwb_irq_tbl[index + pp] != SDE_NONE)
				sde_encoder_helper_unregister_irq(phys,
					cwb_irq_tbl[index + pp]);
	}