From patchwork Wed Nov 11 22:18:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 56394 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp74961lbb; Wed, 11 Nov 2015 14:19:54 -0800 (PST) X-Received: by 10.66.228.33 with SMTP id sf1mr17727255pac.132.1447280392402; Wed, 11 Nov 2015 14:19:52 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id px6si15228698pbc.254.2015.11.11.14.19.52; Wed, 11 Nov 2015 14:19:52 -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 S1753053AbbKKWTl (ORCPT + 28 others); Wed, 11 Nov 2015 17:19:41 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:35735 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752851AbbKKWTf (ORCPT ); Wed, 11 Nov 2015 17:19:35 -0500 Received: by pasz6 with SMTP id z6so44317727pas.2 for ; Wed, 11 Nov 2015 14:19:35 -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=QRun96Th+wpbBo2QVKALWQ3KMOJZAJTf1o7wQrCCrAg=; b=bzQGzafVvx+xRnZJZLEntwzlo0vn/ISb148kftidGuzPrHbfB780MSYBuyW3yw0d7n PmjXVL+klcMeJ9v3KmPGkTaxrjwksbjA/WbA/Hyywhc+SfIh/8iNJWUIf2lciL7ICoCk +uXqpPgFO4jRFmGyQAsmgn1w+5/b8Qhv+XDKGlup/iZDHYRvtmJ9/MWy4zpT35HcDswD XRHvOj0dB2YPhT3KuTCwS4F/9Yo4ZgYRuyDaM/o8cnObK5cknv7TEikyb/R564dJP7yc RFn2qqoBspezwsGbTtMUi6+kzeNgPFQlgQ5rENCW9aD5fCdmRbLMQrNL8voS1l3Kvav9 RfOQ== 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=QRun96Th+wpbBo2QVKALWQ3KMOJZAJTf1o7wQrCCrAg=; b=GlI4FvoQju9CB++q2pIb98nw4aFcaRuXEe1AjDbgCiLBAnrPo6h24w5O9EdxDn1tVC JhRaB5F+NVh/bz5znasrJp2fwzRcX0SFeeeS6B6S6MTb0p4255kIbdmoPTUqlfFZ7JFl OPjxM+yOqROiFgEcRSohV127E+sXOhc0xNnk8bS1lkye5C/t8ez60g7C21SFCLj3YEld 7eVgAHQK4OcqNIRfNOsK9NZcuFXiWPLfTpudLi2f435A+18VqouMn3FHawosw1BhxGaQ hLpoH6/fgoojcXG+0TrS3XU72W3HURCd3PNtm9kDHMxp3oCxCVOH/AbCpp5DZjWbD4iD eLsA== X-Gm-Message-State: ALoCoQklr3CObac4YfJQi+zqVu52eyYn8a+t6GSG+PDKU+ZLGsL0nizQV5JhVplPp0Fhs5l76HpY X-Received: by 10.66.236.34 with SMTP id ur2mr12738775pac.121.1447280375342; Wed, 11 Nov 2015 14:19:35 -0800 (PST) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id h10sm11156697pat.7.2015.11.11.14.19.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Nov 2015 14:19:34 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org, a.p.zijlstra@chello.nl, alexander.shishkin@linux.intel.com, acme@kernel.org, mingo@redhat.com, corbet@lwn.net, nicolas.pitre@linaro.org Cc: adrian.hunter@intel.com, 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@linaro.org Subject: [PATCH V3 10/26] coresight: etm3x: set progbit to stop trace collection Date: Wed, 11 Nov 2015 15:18:00 -0700 Message-Id: <1447280296-19147-11-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447280296-19147-1-git-send-email-mathieu.poirier@linaro.org> References: <1447280296-19147-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(-) -- 1.9.1 -- 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 5a2be0590754..d1235711b576 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);