From patchwork Fri Dec 18 20:59:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 58734 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1267543lbb; Fri, 18 Dec 2015 13:00:07 -0800 (PST) X-Received: by 10.98.87.7 with SMTP id l7mr8278805pfb.124.1450472404997; Fri, 18 Dec 2015 13:00:04 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si22162868pfi.241.2015.12.18.13.00.04; Fri, 18 Dec 2015 13:00:04 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965377AbbLRVAA (ORCPT + 29 others); Fri, 18 Dec 2015 16:00:00 -0500 Received: from mail-io0-f182.google.com ([209.85.223.182]:34989 "EHLO mail-io0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965289AbbLRU7z (ORCPT ); Fri, 18 Dec 2015 15:59:55 -0500 Received: by mail-io0-f182.google.com with SMTP id q126so102237029iof.2 for ; Fri, 18 Dec 2015 12:59:55 -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=ZQNcB2WpE3lLKHesHVWkaECEp/dajQ1nhln19ukODtU=; b=Vup5QvajuWIB2Ldtv2GA4wc7UM2yxVilK6L8o2YRhfOGVlPpGwoj04+1scwzUczSgy omE7a8MEYtkNxgmhkRSNzgMtOrF609TL6ZDt9nS8szR3UoS21TXABfXuEyMnjH7Jnus+ oVeDNbmekwNzL+wEhvG3fhJElY3WhXEvxgOmo= 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=ZQNcB2WpE3lLKHesHVWkaECEp/dajQ1nhln19ukODtU=; b=mSqxW2JJdt6XEUF4dOUJq+7AHYYCxd6ijxY1zRM5R3/54Q/9S1brzDRA/UdI5oe7cz oUUE1kzQnHih/RwE5xgmA3rPjZowLBoq8NweaHYNoshW7Vk6ATtvpCAhSveuuBIg0dj1 nnb3FP/mlJ1pjJ6Q+Yfuxv7RL+0tEE1mZPrM1hxkogeEmgbI1fAV3C2G39tQkbmNieoR DX7/P0H9KMejGK7vj9pUa+k56+mfECT1GKZayBYNTbJBpBdfSRHIvQS2MYRbTF4Pn5jY R0YJmkG3wuzQl5gEv+qXSPktOktuCFzFLAzMW6AxYFeuNAGY1HOSQKIlfv2wdb8FxU2m 9mLQ== X-Gm-Message-State: ALoCoQk6/fY8ssL/y8q/EuPWbjXwBScCEKV+U1FJ4RC22gJavCzmsmckdYJTqNlN2Yrzlq+mwH2nwBzHY/vcvO6Ps6XBWG8JCQ== X-Received: by 10.107.155.78 with SMTP id d75mr6724643ioe.94.1450472395231; Fri, 18 Dec 2015 12:59:55 -0800 (PST) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [184.64.168.246]) by smtp.gmail.com with ESMTPSA id l10sm843701igx.18.2015.12.18.12.59.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 12:59:54 -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, fainelli@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mathieu Poirier Subject: [PATCH V7 10/24] coresight: etm3x: set progbit to stop trace collection Date: Fri, 18 Dec 2015 13:59:06 -0700 Message-Id: <1450472361-426-11-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1450472361-426-1-git-send-email-mathieu.poirier@linaro.org> References: <1450472361-426-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 ff9b83d02cb7..221629ff8916 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);