[SRU][N][PATCH v2 6/6] UBUNTU: SAUCE: Revert "Coresight: Set correct cs_mode for dummy source to fix disable issue"
Noah Wager
noah.wager at canonical.com
Wed Feb 25 16:54:02 UTC 2026
BugLink: https://bugs.launchpad.net/bugs/2142337
This reverts commit e76e676824882150ede5b01969bc65a27cd0e8b5.
This commit depends on upstream commit:
d724f65218b9 ("coresight: Add helper for atomically taking the device")
which is not ported to this kernel. This breaks coresight builds, so
revert the change.
This revert is acceptable because the generic kernel has not
demonstrated any need for this disable fix.
Signed-off-by: Noah Wager <noah.wager at canonical.com>
---
drivers/hwtracing/coresight/coresight-dummy.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/hwtracing/coresight/coresight-dummy.c b/drivers/hwtracing/coresight/coresight-dummy.c
index dab389a5507c..ac70c0b491be 100644
--- a/drivers/hwtracing/coresight/coresight-dummy.c
+++ b/drivers/hwtracing/coresight/coresight-dummy.c
@@ -23,9 +23,6 @@ DEFINE_CORESIGHT_DEVLIST(sink_devs, "dummy_sink");
static int dummy_source_enable(struct coresight_device *csdev,
struct perf_event *event, enum cs_mode mode)
{
- if (!coresight_take_mode(csdev, mode))
- return -EBUSY;
-
dev_dbg(csdev->dev.parent, "Dummy source enabled\n");
return 0;
@@ -34,7 +31,6 @@ static int dummy_source_enable(struct coresight_device *csdev,
static void dummy_source_disable(struct coresight_device *csdev,
struct perf_event *event)
{
- coresight_set_mode(csdev, CS_MODE_DISABLED);
dev_dbg(csdev->dev.parent, "Dummy source disabled\n");
}
--
2.43.0
More information about the kernel-team
mailing list