mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 18:08:20 +00:00
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
This commit is contained in:
parent
73d779a03a
commit
3a2888aa1f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user