From patchwork Wed Feb 3 18:39:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 8207311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 407989F38B for ; Wed, 3 Feb 2016 18:43:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FBA4202E9 for ; Wed, 3 Feb 2016 18:43:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8FE1E20266 for ; Wed, 3 Feb 2016 18:43:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aR2N1-00026z-CZ; Wed, 03 Feb 2016 18:41:39 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aR2Lc-0007zE-17 for linux-arm-kernel@lists.infradead.org; Wed, 03 Feb 2016 18:40:27 +0000 Received: by mail-pf0-x22d.google.com with SMTP id w123so18164312pfb.0 for ; Wed, 03 Feb 2016 10:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8wSK/3m9x4K0CAECC9G96RyXdJY3+GaHAtwY/Uc0TBg=; b=A44IMqVhB5fzvegS9oK/e5BFrmfOCHdenPSm4mMFVQhlQOCHymDoYasYFCpIiaMV6e bnvN4YpIJYSxH0wdI7HCliB+4IYhLVZOgPHCQU9FUa/9fWTxANnlXUHoTiyRX/PXq5g3 hjdGKbxV+wRs5uvpPxuwWEqnkOFPgazNp2KKE= 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=8wSK/3m9x4K0CAECC9G96RyXdJY3+GaHAtwY/Uc0TBg=; b=K2C9im65jLazqvzDEOwdN8xR2+glwifRP11cSqlDYOj2GMzU56Nnm7gZ/lU3QfZkbL eqlgKTEA8i056vHjClgXFPZiN90LfabrpEqMdofYhRE/I8s94crte1QAKdOMzVVmE1XX iNqAqor4/yw3kzJpN/z0myd6tPPr5gJPgiMYYWjr3mnMh700rhs1QLEI/hklNdbYYa3J EoegF1ulVOmfSSytqqsnU6vhqTqc7rRI0kaZ/PQxU7HZXKrxgm3NCDl1iqyJnpxDDk9B HpRel93sOGTMzRjQlmX+YDP256CJmPRvtHrdnsZ0MghfslpB37rCNcBsJcRTxenLCKiK Arag== X-Gm-Message-State: AG10YOTMugEnD8fKyVz3IaOoBmkv5AInRTmaM8QAltbnqgwtcJI9v6NhpYsZIuHAkok0nWWX X-Received: by 10.98.12.221 with SMTP id 90mr4541891pfm.95.1454524791139; Wed, 03 Feb 2016 10:39:51 -0800 (PST) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id xa9sm11369704pab.44.2016.02.03.10.39.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 10:39:50 -0800 (PST) From: Mathieu Poirier To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V9 09/18] coresight: etm3x: set progbit to stop trace collection Date: Wed, 3 Feb 2016 11:39:07 -0700 Message-Id: <1454524756-10628-10-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1454524756-10628-1-git-send-email-mathieu.poirier@linaro.org> References: <1454524756-10628-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160203_104012_406125_11C88FE7 X-CRM114-Status: GOOD ( 10.45 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexander.shishkin@linux.intel.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, tor@ti.com, mike.leach@arm.com, zhang.chunyan@linaro.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index e16501b41ed8..447459969cb5 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -398,9 +398,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);