]> git.karo-electronics.de Git - linux-beck.git/commitdiff
coresight: adding the LINKSINK block as a sink type
authorXia Kaixu <kaixu.xia@linaro.org>
Mon, 30 Mar 2015 20:13:38 +0000 (14:13 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 14:17:03 +0000 (16:17 +0200)
>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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/coresight/coresight.c

index c5def93823570d72b5962be46e07c5a89c1ac892..894531d315b8312f481a15ce64b17bdebe7ffbb4 100644 (file)
@@ -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