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

Commit 8eaddb62 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm/sde: fix underrun interrupt enable index



Fix underrun enable index for command mode to
enable/disable it based on interface index instead
of pp index.

Change-Id: I119fa61ce68580bd4c2cc7c3c94d7353354bb348
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 8fccfa63
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -220,6 +220,7 @@ static int sde_encoder_phys_cmd_register_irq(struct sde_encoder_phys *phys_enc,
{
	struct sde_encoder_phys_cmd *cmd_enc =
			to_sde_encoder_phys_cmd(phys_enc);
	int idx_lookup = 0;
	int ret = 0;

	if (!phys_enc) {
@@ -227,8 +228,10 @@ static int sde_encoder_phys_cmd_register_irq(struct sde_encoder_phys *phys_enc,
		return -EINVAL;
	}

	idx_lookup = (intr_type == SDE_IRQ_TYPE_INTF_UNDER_RUN) ?
			cmd_enc->intf_idx : phys_enc->hw_pp->idx;
	cmd_enc->irq_idx[idx] = sde_core_irq_idx_lookup(phys_enc->sde_kms,
			intr_type, phys_enc->hw_pp->idx);
			intr_type, idx_lookup);
	if (cmd_enc->irq_idx[idx] < 0) {
		SDE_ERROR_CMDENC(cmd_enc,
			"failed to lookup IRQ index for %s with pp=%d\n",