]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
coresight/etm4: fix missing disable active config
authorYeoreum Yun <yeoreum.yun@arm.com>
Wed, 14 May 2025 16:19:49 +0000 (17:19 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 20 May 2025 15:38:47 +0000 (16:38 +0100)
When etm4 device is disabled via sysfs, it should disable its active
count.

Fixes: 7ebd0ec6cf94 ("coresight: configfs: Allow configfs to activate configuration")
Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250514161951.3427590-2-yeoreum.yun@arm.com
drivers/hwtracing/coresight/coresight-etm4x-core.c

index acb4a58e4bb95df1b12cea9bae8c7085ddc1b2b5..42e5d37403addc6ec81f2e3184522d67d1677c04 100644 (file)
@@ -1048,6 +1048,9 @@ static void etm4_disable_sysfs(struct coresight_device *csdev)
        smp_call_function_single(drvdata->cpu, etm4_disable_hw, drvdata, 1);
 
        raw_spin_unlock(&drvdata->spinlock);
+
+       cscfg_csdev_disable_active_config(csdev);
+
        cpus_read_unlock();
 
        /*