Coresight: Add coresight dummy driver
authorHao Zhang <quic_hazha@quicinc.com>
Fri, 2 Jun 2023 08:41:47 +0000 (16:41 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 15 Jun 2023 07:50:23 +0000 (08:50 +0100)
commit9d3ba0b6c056918355cf36094d6ed63cdd01a2ab
treef102b2b507ee71e7e804d08eca9b389aa800b2f3
parent83e92e301eb2f1eee9415eca55ce1547d22dae6f
Coresight: Add coresight dummy driver

Some Coresight devices that kernel don't have permission to access or
configure. For these devices, a dummy driver is needed to register them as
Coresight devices. The module may also be used to define components that
may not have any programming interfaces, so that paths can be created
in the driver. It provides Coresight API for operations on dummy devices,
such as enabling and disabling them. It also provides the Coresight dummy
sink/source paths for debugging.

Signed-off-by: Hao Zhang <quic_hazha@quicinc.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230602084149.40031-2-quic_hazha@quicinc.com
drivers/hwtracing/coresight/Kconfig
drivers/hwtracing/coresight/Makefile
drivers/hwtracing/coresight/coresight-dummy.c [new file with mode: 0644]
include/linux/coresight.h