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

Commit 75d3b58f authored by Rama Aparna Mallavarapu's avatar Rama Aparna Mallavarapu Committed by Gerrit - the friendly Code Review server
Browse files

coresight: stm: Fix missing disable flag when disabling STM



stm_disable function must set the drvdata->enable flag to false while
disabling the STM which is missing. Fix the enable flag to false
in stm_disable function.

Change-Id: Iec8df425bcbf44faa5d01051f5f9ae60c00e88f5
Signed-off-by: default avatarRama Aparna Mallavarapu <aparnam@codeaurora.org>
parent 2a787e6d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@ static void stm_disable(struct coresight_device *csdev,
	if (local_read(&drvdata->mode) == CS_MODE_SYSFS) {
		spin_lock(&drvdata->spinlock);
		stm_disable_hw(drvdata);
		drvdata->enable = false;
		spin_unlock(&drvdata->spinlock);

		/* Wait until the engine has completely stopped */