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

Commit 2f56bace authored by Shaoqing Liu's avatar Shaoqing Liu Committed by Gerrit - the friendly Code Review server
Browse files

Coresight: Add clean bit before evaluation in tpdm_store_dsb_edge_ctrl



Updata bit operation method of data in tpdm_store_dsb_edge_ctrl
to fix the issue that it cannot do bit clear operation.

Change-Id: I58d6353a9578dbb432a26503831d7a14a9a3be17
Signed-off-by: default avatarShaoqing Liu <shaoqingliu@codeaurora.org>
parent dfb894c5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2993,6 +2993,7 @@ static ssize_t tpdm_store_dsb_edge_ctrl(struct device *dev,
		bit = bit * 2;

		val = drvdata->dsb->edge_ctrl[reg];
		val = val & ~BM(bit, (bit + 1));
		val = val | (edge_ctrl << bit);
		drvdata->dsb->edge_ctrl[reg] = val;
	}