Skip to content

Commit 895b12b

Browse files
LeviYeoReumSuzuki K Poulose
authored andcommitted
coresight/etm4: fix missing disable active config
When etm4 device is disabled via sysfs, it should disable its active count. Fixes: 7ebd0ec ("coresight: configfs: Allow configfs to activate configuration") Signed-off-by: Yeoreum Yun <[email protected]> Reviewed-by: Leo Yan <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ee811bc commit 895b12b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/hwtracing/coresight/coresight-etm4x-core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,9 @@ static void etm4_disable_sysfs(struct coresight_device *csdev)
10481048
smp_call_function_single(drvdata->cpu, etm4_disable_hw, drvdata, 1);
10491049

10501050
raw_spin_unlock(&drvdata->spinlock);
1051+
1052+
cscfg_csdev_disable_active_config(csdev);
1053+
10511054
cpus_read_unlock();
10521055

10531056
/*

0 commit comments

Comments
 (0)