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

Commit 1514e05f authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: mailbox: rpmh: clear wait_for_compl for TCS



Clear wait_for_compl for RPMH requests in IRQ handler for active TCS and
during invalidate for sleep and wake TCS.

Change-Id: I88cd3e4edf17030052776e73bc199cffc89525e0
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent a95b107d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -490,6 +490,7 @@ static irqreturn_t tcs_irq_handler(int irq, void *p)
		} else {
			/* Clear the enable bit for the commands */
			write_tcs_reg(base, RSC_DRV_CMD_ENABLE, m, 0, 0);
			write_tcs_reg(base, RSC_DRV_CMD_WAIT_FOR_CMPL, m, 0, 0);
		}

no_resp:
@@ -808,6 +809,7 @@ static int tcs_mbox_write(struct mbox_chan *chan, struct tcs_mbox_msg *msg,
static void __tcs_buffer_invalidate(void __iomem *base, int m)
{
	write_tcs_reg(base, RSC_DRV_CMD_ENABLE, m, 0, 0);
	write_tcs_reg(base, RSC_DRV_CMD_WAIT_FOR_CMPL, m, 0, 0);
}

static int tcs_mbox_invalidate(struct mbox_chan *chan)