coresight: Store in-connections as well as out-connections
authorJames Clark <james.clark@arm.com>
Tue, 25 Apr 2023 14:35:36 +0000 (15:35 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 5 Jun 2023 14:46:46 +0000 (15:46 +0100)
commite3f4e68797a960869ccae556ad63163b3dc470a2
tree8dd09d37c864af0de5a23802654cf11ff759f515
parent102162dbac89b35eb04f3bd621d3673b0676637a
coresight: Store in-connections as well as out-connections

This will allow CATU to get its associated ETR in a generic way where
currently the enable path has some hard coded searches which avoid
the need to store input connections.

This also means that the full search for connected devices on removal
can be replaced with a loop through only the input and output devices.

Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: James Clark <james.clark@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230425143542.2305069-10-james.clark@arm.com
drivers/hwtracing/coresight/coresight-core.c
drivers/hwtracing/coresight/coresight-platform.c
drivers/hwtracing/coresight/coresight-sysfs.c
include/linux/coresight.h