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

Commit 78b8bafc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "coresight: tmc: Set enable flag to false when disabling TMC"

parents 484d05cb adaeec1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ void tmc_enable_hw(struct tmc_drvdata *drvdata)

void tmc_disable_hw(struct tmc_drvdata *drvdata)
{
	drvdata->enable = true;
	drvdata->enable = false;
	writel_relaxed(0x0, drvdata->base + TMC_CTL);
}

+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ static void coresight_disable_sink(struct coresight_device *csdev)
	if (atomic_dec_return(csdev->refcnt) == 0) {
		if (sink_ops(csdev)->disable) {
			sink_ops(csdev)->disable(csdev);
			csdev->enable = false;
			csdev->activated = false;
		}
	}