From 6e59374d395dc38c823373c50bfd82d7dc7b0634 Mon Sep 17 00:00:00 2001 From: Xia Kaixu Date: Mon, 30 Mar 2015 14:13:38 -0600 Subject: [PATCH] coresight: adding the LINKSINK block as a sink type >From the TMC TRM, the ETF can be configured as buffer mode, so ETF can be a sink type. Signed-off-by: Xia Kaixu Signed-off-by: Mathieu Poirier Signed-off-by: Greg Kroah-Hartman --- drivers/coresight/coresight.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/coresight/coresight.c b/drivers/coresight/coresight.c index c5def93823570..894531d315b83 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 -- 2.39.5