From nobody Thu Dec 18 02:27:53 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F4FD253933 for ; Wed, 14 May 2025 16:20:03 +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=1747239605; cv=none; b=eu1iq2/kLeBGdQOjmLA4aNsn4N+QnOFrqn0bVrT/gDhzvKXrjKnecxBBaP3mFTusupktx3VOYhTsK75tnvGpDdWpZjLlZ+kI1GYeWPYcwon94BEfrJ/Idsrhk5oY1rgyqJUmwvF91m0ikabWMh7zyXre+NTprJe0NyLh+d/YPLE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747239605; c=relaxed/simple; bh=eCKQAuKZBd/ahYdfc7Bii5ANvee75EpDuuQz0FuOxyc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZDVb9k4TzoL2xqC/AQVEYAysEAN2quS2mo6IomT1h68gMsyHf++ME+xk6GwXB2eZMcEKNzVZYnIANE6fUrdBB7yxLDey6oYNaz5ltX6AyUGd/YYFukFifpHvLMT8ImyVomzh2cEOew1jVNoRFpO2PtkmHEzFwi9SeuMOr9yMI3Y= 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 BAEE915A1; Wed, 14 May 2025 09:19:50 -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 9CB8D3F63F; Wed, 14 May 2025 09:20:00 -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 v6 1/3] coresight/etm4: fix missing disable active config Date: Wed, 14 May 2025 17:19:49 +0100 Message-Id: <20250514161951.3427590-2-yeoreum.yun@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250514161951.3427590-1-yeoreum.yun@arm.com> References: <20250514161951.3427590-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: quoted-printable Content-Type: text/plain; charset="utf-8" When etm4 device is disabled via sysfs, it should disable its active count. Fixes: 7ebd0ec6cf94 ("coresight: configfs: Allow configfs to activate confi= guration") Signed-off-by: Yeoreum Yun Reviewed-by: Leo Yan --- 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/h= wtracing/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_devic= e *csdev) smp_call_function_single(drvdata->cpu, etm4_disable_hw, drvdata, 1); =20 raw_spin_unlock(&drvdata->spinlock); + + cscfg_csdev_disable_active_config(csdev); + cpus_read_unlock(); =20 /* --=20 LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}