Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp18227lfv; Tue, 12 Apr 2022 15:27:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbbEQndcnJb/smZJNrYTdsM7BzHJc87UxoKmXIJZwmoat/us8bYfJyEjwTazceHFwuxjA9 X-Received: by 2002:a05:6a00:2d0:b0:4f4:1f34:e39d with SMTP id b16-20020a056a0002d000b004f41f34e39dmr40226771pft.14.1649802472627; Tue, 12 Apr 2022 15:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649802472; cv=none; d=google.com; s=arc-20160816; b=zdsPvFT25ZQPtB89Pq+hdVmq+nsjlNgWN+2WPYmnPV9lYrd3jE8AiBS49Q8Gb2g3XX +gAPM9i6MdQzSUALXeUL3x0XVuf3AXmobqoTv3TE2fk5NJbdsfdsAOJ2DhkC+lngS+ad 9L7uI3XqXOwHPHAdUxFoYaCboJUQkyR/YWWqA7cPObTkvB1H94Ka/9QhOW87sKFgJtxM H9rkLnmc8K/u/GIyh1X2LEl4ncvubmP66OMrCQmWPcjt5U+egfmGehhxN6yZdiQVJaqy Hzc+FqZXoQSKc0kxqrjFKnF2eqHCUhs9jeXnn+osIV4XFVPD7reqtabPtX6Rl1IJxEGa zbVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FgjY7H1ZyME0qwy3R/u6paw0pnftya7ZX2HN8cgGzfA=; b=ZUBQ1TX6d/VXjb4QviwIEIPQPB2HFhX6OdEdKy7GtkU8IS6IkLfy798TkcZL5hE50e 30QchBDENk1GenaZAu4+26ZvNC3+8eADRU2icMrowC6+XHCVJvOh3NpNm425W1nUzwu5 ByEMPGhRjArJ/x4y1NE2h4qwasx3ME0YlVHHhzdZlc9NpLBddjP91J/5L39RNkdejwLx cDIhSiP2QdS7MxfWJpD7ZqHs2ulCeyo0mYXQjnNrSUajgyIWP4rPpYAfj/I1hqG8PCGo cKcfRf/FDUOOvz+fccysR4024ZnECBGjoBtE3eBUKo5xZ4YDMdFYdLXYmgYT3Y8QTnmn L0iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ne3w86K7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c7-20020a631c47000000b0039cf81ebf5esi3778459pgm.114.2022.04.12.15.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:27:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ne3w86K7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20CC1181B3A; Tue, 12 Apr 2022 14:05:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351781AbiDLLma (ORCPT + 99 others); Tue, 12 Apr 2022 07:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352425AbiDLLhs (ORCPT ); Tue, 12 Apr 2022 07:37:48 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FF851B0 for ; Tue, 12 Apr 2022 03:17:17 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id r133-20020a1c448b000000b0038ccb70e239so1419371wma.3 for ; Tue, 12 Apr 2022 03:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FgjY7H1ZyME0qwy3R/u6paw0pnftya7ZX2HN8cgGzfA=; b=ne3w86K753pIjNk60LVZmDgZk8VZDfs/glLnxVo4/VjTxiJ6UUTFrdIqsVmpW2sL/o MTagu3acV1bPiyXknAH6hYt7apWs2Yrguz5IEXOA1kjzVU2QYLmyyGrdO+zWkcb5WwyA TmgzpPSGfITPJtjuphY0J81bzhOdlhsOQ6dfHZ/iFjoeidISUZdair1sW3IVK8BghOW0 jB2b2hRCF9JtEKU6vX1NspPynkxij9wXhxT01iP/NcRT5Si1var8squBmK+g0BY1cemh jEK8dRqXHKWFFF9Pv7qTmXE0tqTPo3VsiGGgo6pgzHDtaQX4FjEG8VL0ukEeGFSuX7T9 4PTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FgjY7H1ZyME0qwy3R/u6paw0pnftya7ZX2HN8cgGzfA=; b=m6hOAejj/GNaMxCI2tr4IiDxqLjjY4E9KkebMt3qyl9NIMVKkRehWNbC2LOUzdKPZk qkl5lPtYSm7E28X4SvC3KzI8iF6dOSg+moG2Wa90IJKtRm59z64rSV1JBa+XCbLU+vj6 TsJ+AhoCHf9ZELQ3F0UoJzbSKgxb/Z/J2ER/AlFrdaovAMTTyN5RcKIAN+alBPZEUHgN yNE9mQtPN5bjlzY6RUAomLHR8mpaB6jCozYgE2ibFoHjLJGgeoRSGz2gFJQum6B1lVBO u2ShSBw69ORqbkTmDx2+Pt0iMva+Z6l008jRjna+XRngZ1E9sOJsUxQ44zNfUXjh2QZk ociw== X-Gm-Message-State: AOAM532L1zvb+wiWcqbTrOHqiyC65xIyMWPT6vQIGvUDpsSm6S4aBlY4 Vb08ahVKKV8Saiu6KSvZznxN9p72eGh5gCBxTNjFRg== X-Received: by 2002:a05:600c:1c9c:b0:38e:3270:373d with SMTP id k28-20020a05600c1c9c00b0038e3270373dmr3340130wms.199.1649758635934; Tue, 12 Apr 2022 03:17:15 -0700 (PDT) MIME-Version: 1.0 References: <20220304171913.2292458-1-james.clark@arm.com> <20220304171913.2292458-11-james.clark@arm.com> In-Reply-To: <20220304171913.2292458-11-james.clark@arm.com> From: Mike Leach Date: Tue, 12 Apr 2022 11:17:04 +0100 Message-ID: Subject: Re: [PATCH v3 10/15] coresight: etm3x: Cleanup ETMTECR1 register accesses To: James Clark Cc: suzuki.poulose@arm.com, coresight@lists.linaro.org, Anshuman.Khandual@arm.com, mathieu.poirier@linaro.org, leo.yan@linaro.com, Leo Yan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Mar 2022 at 17:19, James Clark wrote: > > This is a no-op change for style and consistency and has no effect on > the binary output by the compiler. These fields already have macros > to define them so use them instead of magic numbers. > > Signed-off-by: James Clark > --- > drivers/hwtracing/coresight/coresight-etm3x-core.c | 2 +- > drivers/hwtracing/coresight/coresight-etm3x-sysfs.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-etm3x-core.c b/drivers/hwtracing/coresight/coresight-etm3x-core.c > index 7d413ba8b823..d0ab9933472b 100644 > --- a/drivers/hwtracing/coresight/coresight-etm3x-core.c > +++ b/drivers/hwtracing/coresight/coresight-etm3x-core.c > @@ -204,7 +204,7 @@ void etm_set_default(struct etm_config *config) > * set all bits in register 0x007, the ETMTECR2, to 0 > * set register 0x008, the ETMTEEVR, to 0x6F (TRUE). > */ > - config->enable_ctrl1 = BIT(24); > + config->enable_ctrl1 = ETMTECR1_INC_EXC; > config->enable_ctrl2 = 0x0; > config->enable_event = ETM_HARD_WIRE_RES_A; > > diff --git a/drivers/hwtracing/coresight/coresight-etm3x-sysfs.c b/drivers/hwtracing/coresight/coresight-etm3x-sysfs.c > index e8c7649f123e..68fcbf4ce7a8 100644 > --- a/drivers/hwtracing/coresight/coresight-etm3x-sysfs.c > +++ b/drivers/hwtracing/coresight/coresight-etm3x-sysfs.c > @@ -474,7 +474,7 @@ static ssize_t addr_start_store(struct device *dev, > config->addr_val[idx] = val; > config->addr_type[idx] = ETM_ADDR_TYPE_START; > config->startstop_ctrl |= (1 << idx); > - config->enable_ctrl1 |= BIT(25); > + config->enable_ctrl1 |= ETMTECR1_START_STOP; > spin_unlock(&drvdata->spinlock); > > return size; > -- > 2.28.0 > Reviewed-by: Mike Leach -- Mike Leach Principal Engineer, ARM Ltd. Manchester Design Centre. UK