From patchwork Mon Mar 30 20:13:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 46538 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0BC98218BE for ; Mon, 30 Mar 2015 20:15:24 +0000 (UTC) Received: by wgfb3 with SMTP id b3sf15026216wgf.3 for ; Mon, 30 Mar 2015 13:15:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=q+iEaNYfmqHC7iMRXP7kQo9dbPnX9otzFRxcAktZUPg=; b=MD9fsjZ5WerZZ60NcbQ/Ve6N/WBls4eNzKKNg+3ppP2+xVb9z0FjZFcmfBvthVjblM 0j2y7mL2NoNm9/UZ74TEyO11zXJDf0caLG6ck5FOVRSmLSoTKih+RfXaXCFxEIUN6mIQ OhVO4qNDA5YoNZb2S14LEuxtp2eBcADlvBWHSmAk3O+re+JoXK3p2nWAurUhWjuhQPF3 6XsTPWFcR9UaXoOD7Xz9xBikYNNDJMVHQlbPNX4KX+TWWhSqmUsGD2S3oY4wk+pAlWEr 3fjYT7dKsy33GOowxyqh1rkXUujHzo5y4CHsVn4/SI0YFgkXVOIvk1awOqhXk1pYAT7s Uepw== X-Gm-Message-State: ALoCoQlG59FsjrK440paFV/DavV0ZChK1NV+oG7S0ViOmGA9px1D8uMug27bUwdbe2gxQ48mgav1 X-Received: by 10.112.242.7 with SMTP id wm7mr7446117lbc.1.1427746523238; Mon, 30 Mar 2015 13:15:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.229 with SMTP id n5ls54946lan.100.gmail; Mon, 30 Mar 2015 13:15:23 -0700 (PDT) X-Received: by 10.152.27.97 with SMTP id s1mr9893187lag.53.1427746523048; Mon, 30 Mar 2015 13:15:23 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id eo7si7718841lac.118.2015.03.30.13.15.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 13:15:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbug6 with SMTP id ug6so103322100lbb.3 for ; Mon, 30 Mar 2015 13:15:22 -0700 (PDT) X-Received: by 10.112.29.36 with SMTP id g4mr19971999lbh.56.1427746522910; Mon, 30 Mar 2015 13:15:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1366901lbq; Mon, 30 Mar 2015 13:15:21 -0700 (PDT) X-Received: by 10.68.57.170 with SMTP id j10mr11786807pbq.89.1427746520258; Mon, 30 Mar 2015 13:15:20 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ve10si16193528pac.83.2015.03.30.13.15.18; Mon, 30 Mar 2015 13:15:20 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754330AbbC3UPP (ORCPT + 27 others); Mon, 30 Mar 2015 16:15:15 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:33591 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753837AbbC3UN7 (ORCPT ); Mon, 30 Mar 2015 16:13:59 -0400 Received: by pdnc3 with SMTP id c3so186227207pdn.0 for ; Mon, 30 Mar 2015 13:13:58 -0700 (PDT) X-Received: by 10.68.254.226 with SMTP id al2mr30435206pbd.44.1427746438619; Mon, 30 Mar 2015 13:13:58 -0700 (PDT) Received: from t430.cg.shawcable.net ([184.64.168.246]) by mx.google.com with ESMTPSA id jy9sm11549978pbc.31.2015.03.30.13.13.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 13:13:57 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, zhang.chunyan@linaro.org, kaixu.xia@linaro.org, mathieu.poirier@linaro.org Subject: [PATCH 5/8] coresight: adding the LINKSINK block as a sink type Date: Mon, 30 Mar 2015 14:13:38 -0600 Message-Id: <1427746421-31360-6-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427746421-31360-1-git-send-email-mathieu.poirier@linaro.org> References: <1427746421-31360-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Xia Kaixu >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 --- 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 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