diff options
author | Xia Kaixu <kaixu.xia@linaro.org> | 2014-12-10 20:39:49 +0800 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2015-03-06 10:09:14 -0700 |
commit | bf546fd0a35515a1e07fe3a844ef6ec34b6e132f (patch) | |
tree | b3d76dd8866a643c4b1654273f7cdeada427934f | |
parent | a3e39a30b7ea7b9d3d9d8150d9fc1e4aa13ac8e9 (diff) |
coresight: adding the LINKSINK block as a sink typev3.10-backport-next
From the TMC TRM, the ETF can be configured as buffer mode, so ETF can
be a sink type.
Signed-off-by: Xia Kaixu <kaixu.xia@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
-rw-r--r-- | drivers/coresight/coresight.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/coresight/coresight.c b/drivers/coresight/coresight.c index c5def9382357..894531d315b8 100644 --- a/drivers/coresight/coresight.c +++ b/drivers/coresight/coresight.c @@ -305,7 +305,9 @@ static int coresight_build_paths(struct coresight_device *csdev, list_add(&csdev->path_link, path); - if (csdev->type == CORESIGHT_DEV_TYPE_SINK && csdev->activated) { + if ((csdev->type == CORESIGHT_DEV_TYPE_SINK || + csdev->type == CORESIGHT_DEV_TYPE_LINKSINK) && + csdev->activated) { if (enable) ret = coresight_enable_path(path); else |