From patchwork Wed Oct 7 15:26:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 54591 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id BFFF522FEF for ; Wed, 7 Oct 2015 15:27:31 +0000 (UTC) Received: by lbos8 with SMTP id s8sf8619243lbo.2 for ; Wed, 07 Oct 2015 08:27:30 -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=nd1XNFxGc6CVw10Ia0yXQMMK6mVtu80Agzt/5CG9lZY=; b=I99B3ItlpruDuqVCr3PRXQbm4/myB8019qOlDCv3I0X247VX+8ke0rvGqs65sJQnhJ eHYsFPQqQAGsxsycDf0OH1O5omUUFlHj/vq4KShzsxXSM6NN7LMziqIGm6MQXEnaxFm5 X9iYTbXTdE1TlNtarOn5HWs+EQdq+4CjxCzK43ub16ePL/DPDonxF/oF1uKNYcM9D53o KgXoYrls4oRbADT20C9gKUgNpAcBUx4huCXlZ3fqq94wOPFwQV13QjEyoHtmj920jPgy vYlopyyfAHYbO4DVNFEr80YS5I4eYYUH5rmW9sjfwSj/oylUWbZiGnoaZeLdNUMrMb8M MUOA== X-Gm-Message-State: ALoCoQkUBP1CysqYJN9R+XuoMg/dTxUpkLfX0GOLtapSs6fYJ5QLitNHCrHRr8F2JibSLW+yhyhZ X-Received: by 10.194.156.193 with SMTP id wg1mr369544wjb.3.1444231650433; Wed, 07 Oct 2015 08:27:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.87.8 with SMTP id l8ls95699lfb.92.gmail; Wed, 07 Oct 2015 08:27:30 -0700 (PDT) X-Received: by 10.25.19.193 with SMTP id 62mr622934lft.68.1444231650125; Wed, 07 Oct 2015 08:27:30 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id wk2si25583870lbb.42.2015.10.07.08.27.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Oct 2015 08:27:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbcao8 with SMTP id ao8so15905400lbc.3 for ; Wed, 07 Oct 2015 08:27:30 -0700 (PDT) X-Received: by 10.112.163.131 with SMTP id yi3mr928699lbb.36.1444231650015; Wed, 07 Oct 2015 08:27:30 -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.59.35 with SMTP id w3csp50323lbq; Wed, 7 Oct 2015 08:27:29 -0700 (PDT) X-Received: by 10.68.90.34 with SMTP id bt2mr1713705pbb.145.1444231649037; Wed, 07 Oct 2015 08:27:29 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id as4si58581953pbd.0.2015.10.07.08.27.28; Wed, 07 Oct 2015 08:27:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754838AbbJGP1M (ORCPT + 30 others); Wed, 7 Oct 2015 11:27:12 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34430 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753997AbbJGP1D (ORCPT ); Wed, 7 Oct 2015 11:27:03 -0400 Received: by padhy16 with SMTP id hy16so24468319pad.1 for ; Wed, 07 Oct 2015 08:27:03 -0700 (PDT) X-Received: by 10.66.120.237 with SMTP id lf13mr1713707pab.25.1444231623539; Wed, 07 Oct 2015 08:27:03 -0700 (PDT) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id ja4sm40170570pbb.19.2015.10.07.08.27.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Oct 2015 08:27:03 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org Subject: [PATCH 3/6] coresight: adding comments to remove ambiguity Date: Wed, 7 Oct 2015 09:26:40 -0600 Message-Id: <1444231603-26676-4-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444231603-26676-1-git-send-email-mathieu.poirier@linaro.org> References: <1444231603-26676-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.175 as permitted sender) smtp.mailfrom=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: , Add comment to function coresight_enable_path() to make sure there is no misunderstanding about what the code does. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c index 894531d315b8..e25492137d8b 100644 --- a/drivers/hwtracing/coresight/coresight.c +++ b/drivers/hwtracing/coresight/coresight.c @@ -240,6 +240,11 @@ static int coresight_enable_path(struct list_head *path) int ret = 0; struct coresight_device *cd; + /* + * At this point we have a full @path, from source to sink. The + * sink is the first entry and the source the last one. Go through + * all the components and enable them one by one. + */ list_for_each_entry(cd, path, path_link) { if (cd == list_first_entry(path, struct coresight_device, path_link)) {