From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4E9E2AF10 for ; Tue, 13 May 2025 17:06:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747155994; cv=none; b=MUq7VgIoVa0fIWBSKRmsvpcEVeJOsrDVsyKbTUMR0S3r6zZdrrNH6kHJlvEoW1Y0L2Gk9EfORSMMMDxt/Z8K8257o/qnXa94pzv+SVKOG3aRKDNjO3V4Clu42gbApaeG69kIrZZBs0prk9Lu3vJOQeoPw3hoILzctVn3DW1veYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747155994; c=relaxed/simple; bh=ytracPYdPvm/Y+Q3PUap2vVPJbDrcxYD1imhSElSFcE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VrkXbSa2TLs30Y1Ufew3ghfsq7UU8dvqDRk6DdlQmyyx58R9q2qegOWaI1iioBDKU380STD/Za+nlLBnkB7+m8sM9wq9B65GM5RI4tbNOXQ+hCbAcK3keDrM5YCi88foM7h0qaZcu8df9tbEgwYNq6UZojGRsqimntn2u1LjXCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2F20A168F; Tue, 13 May 2025 10:06:21 -0700 (PDT) Received: from e129823.cambridge.arm.com (e129823.arm.com [10.1.197.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 97B9E3F63F; Tue, 13 May 2025 10:06:30 -0700 (PDT) From: Yeoreum Yun To: suzuki.poulose@arm.com, mike.leach@linaro.org, james.clark@linaro.org, alexander.shishkin@linux.intel.com, leo.yan@arm.com Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yeoreum Yun Subject: [PATCH v5 1/3] coresight/etm4: fix missing disable active config Date: Tue, 13 May 2025 18:06:20 +0100 Message-Id: <20250513170622.3071637-2-yeoreum.yun@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250513170622.3071637-1-yeoreum.yun@arm.com> References: <20250513170622.3071637-1-yeoreum.yun@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit When etm4 device is disabled via sysfs, it should disable its active count. Signed-off-by: Yeoreum Yun --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index 2b8f10463840..f008f87f0801 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -1020,6 +1020,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(); /* -- LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}