diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2023-07-10 11:54:59 +0530 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2023-07-26 16:46:25 +0100 |
commit | 3a2888aa1f962c55ca36119aebe67355c7bf54e4 (patch) | |
tree | 2e64994faeb1cc2c62386ecf7c7ab4bb4aa6b458 | |
parent | 73d779a03a76ac3fe26832cba3c9ad04194af595 (diff) | |
download | linux-3a2888aa1f962c55ca36119aebe67355c7bf54e4.tar.gz linux-3a2888aa1f962c55ca36119aebe67355c7bf54e4.tar.bz2 linux-3a2888aa1f962c55ca36119aebe67355c7bf54e4.zip |
coresight: platform: acpi: Ignore the absence of graph
Some components may not have graph connections for describing
the trace path. e.g., ETE, where it could directly use the per
CPU TRBE. Ignore the absence of graph connections
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20230710062500.45147-6-anshuman.khandual@arm.com
-rw-r--r-- | drivers/hwtracing/coresight/coresight-platform.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 27ca22c5104f..7d7b641c0a71 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -667,8 +667,12 @@ static int acpi_coresight_parse_graph(struct device *dev, struct coresight_connection *new_conn; graph = acpi_get_coresight_graph(adev); + /* + * There are no graph connections, which is fine for some components. + * e.g., ETE + */ if (!graph) - return -ENOENT; + return 0; nlinks = graph->package.elements[2].integer.value; if (!nlinks) |