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

Commit 779c3c7b authored by Aparna Das's avatar Aparna Das
Browse files

coresight: fix cti gate enable disable apis functionalities



Setting the CoreSight CTI Gate register enables CTI channel
propagation and clearing this register disables channel
propagation. Current implementation of CTI gate enable and
disable apis is not consistent with this channel propagation
behavior. Fix these api implementaions.

Change-Id: Ibe93f97a785c6c33753c18db4417997f9fbf5af1
Signed-off-by: default avatarAparna Das <adas@codeaurora.org>
parent 5bd130f8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -539,7 +539,7 @@ static int __cti_enable_gate(struct cti_drvdata *drvdata, int ch)
	CTI_UNLOCK(drvdata);

	ctigate = cti_readl(drvdata, CTIGATE);
	cti_writel(drvdata, (ctigate | 1 << ch), CTIGATE);
	cti_writel(drvdata, (ctigate & ~(1 << ch)), CTIGATE);

	CTI_LOCK(drvdata);

@@ -583,7 +583,7 @@ static void __cti_disable_gate(struct cti_drvdata *drvdata, int ch)
	CTI_UNLOCK(drvdata);

	ctigate = cti_readl(drvdata, CTIGATE);
	cti_writel(drvdata, (ctigate & ~(1 << ch)), CTIGATE);
	cti_writel(drvdata, (ctigate | (1 << ch)), CTIGATE);

	CTI_LOCK(drvdata);
}