From patchwork Mon Nov 30 02:14:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 57405 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1179409lbb; Sun, 29 Nov 2015 18:17:01 -0800 (PST) X-Received: by 10.66.248.74 with SMTP id yk10mr86171234pac.17.1448849820805; Sun, 29 Nov 2015 18:17:00 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p18si26936113pfi.205.2015.11.29.18.17.00; Sun, 29 Nov 2015 18:17:00 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753225AbbK3CQ4 (ORCPT + 28 others); Sun, 29 Nov 2015 21:16:56 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34325 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147AbbK3CQs (ORCPT ); Sun, 29 Nov 2015 21:16:48 -0500 Received: by padhx2 with SMTP id hx2so168021148pad.1 for ; Sun, 29 Nov 2015 18:16:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UWNUfpHDGNxYJENcuq7Aa72/q5B700HT4jBgOJXqv4w=; b=WXbj0e7rYliDcapLHIBOF6OQfb62ybluBp+leuq4r5mWhdlYjHi2zCeQtUv79yPJDr QmEwg6zzJQq+yMfFF4/JiJ9NHZi0v/3Eev0lVz2Q6vYHuaPt98w7Zx3ndqCXOs/wIcCV 9DJO+sR8EPJBBiuS7t09qZ3Mc6Fz10StDBsdRNaj8uVFMpUQMWUILITjBj4CcUM4Louy RgtU2o3KEAjkPNmUWr31O+nRoyzabfA9lidS0UaIBEizPTfLlDv7wZS+T0h3uE2cPSC1 Ot6XzXj6CJJd72K/57AhoFzECOpTclJw6VOClRmGw703GEtRBH7h2JabJCDS5bYnFnyI Uy4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UWNUfpHDGNxYJENcuq7Aa72/q5B700HT4jBgOJXqv4w=; b=OywcAsrhEeJECD776omw2po7/YEZ3o9dBtRgTsS9pCHBBpqzqKeVEcI0et2851gwjV 5w3CJ99KVdOYL0VlqXhaP8TTecQ2o6HGYwFkm+FnCSBM6n3a38HmCgpIdWiTZYg4Qxqc TVSXfimZWJtPTR24ANaX27OKIKi/jwJp+Uz6d9XnpLHKRrgRvCO1Rju6wG7r5Utxqntg l0lmQDyFfEhC3vQCfvY4DPJ0cy4O6E2ZqimIORShOhvMqgPMFvPbXdcOANIb+qYvji5W g5F6/D0oXubXDot4ZXWF/tOm/mjl1/jZ7RRuOo/eAKj7k4sQk3uaXWsoyBGnkV+PH1fp entg== X-Gm-Message-State: ALoCoQkOYZoIQeKCTtCLwSgYoppzGGJ8C1q0l40hczZecn7kYMIdZHrBJWh0FkQBtDnzb+hx4/Na X-Received: by 10.66.237.102 with SMTP id vb6mr8438585pac.133.1448849807221; Sun, 29 Nov 2015 18:16:47 -0800 (PST) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id n16sm47168818pfa.53.2015.11.29.18.16.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Nov 2015 18:16:46 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org, alexander.shishkin@linux.intel.com Cc: zhang.chunyan@linaro.org, mike.leach@arm.com, tor@ti.com, al.grant@arm.com, pawel.moll@arm.com, fainelli@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mathieu Poirier Subject: [PATCH V5 10/26] coresight: etm3x: set progbit to stop trace collection Date: Sun, 29 Nov 2015 19:14:31 -0700 Message-Id: <1448849687-5724-11-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1448849687-5724-1-git-send-email-mathieu.poirier@linaro.org> References: <1448849687-5724-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to use the event enable's "always false" event to stop trace collection. For that purpose setting the programming bit (ETMCR:10) is enough. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm3x.c | 3 --- 1 file changed, 3 deletions(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 0035953a1102..a0252ffb4ba7 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -422,9 +422,6 @@ static void etm_disable_hw(void *info) CS_UNLOCK(drvdata->base); etm_set_prog(drvdata); - /* Program trace enable to low by using always false event */ - etm_writel(drvdata, ETM_HARD_WIRE_RES_A | ETM_EVENT_NOT_A, ETMTEEVR); - /* Read back sequencer and counters for post trace analysis */ config->seq_curr_state = (etm_readl(drvdata, ETMSQR) & ETM_SQR_MASK);