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

Commit e2845b57 authored by Xiaogang Cui's avatar Xiaogang Cui
Browse files

coresight: fix the resource ctrl setting in etmv4



correct resource control parameter to be able to program
resource control for CoreSight ETMv4 trace.

Change-Id: If31a5bb045a84fc8d48023062fb30ed746512239
Signed-off-by: default avatarXiaogang Cui <xiaogang@codeaurora.org>
parent 95b6c25e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2471,7 +2471,7 @@ static ssize_t etm_store_resource_ctrl(struct device *dev,
	/* For odd idx pair inversal bit is RES0 */
	if (idx % 2 != 0)
		val &= ~BIT(21);
	drvdata->cntr_ctrl[idx] = val;
	drvdata->resource_ctrl[idx] = val;
	spin_unlock(&drvdata->spinlock);
	return size;
}