From patchwork Fri Jul 6 18:44:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 141344 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3424960ljj; Fri, 6 Jul 2018 11:45:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf1liOuBCf6SRn7fTLlm4aOGlbpxMzbGddVPGFJphC+VfSBsZyW2v/awP5a+7gs1cfUzu+i X-Received: by 2002:a65:420d:: with SMTP id c13-v6mr10335609pgq.265.1530902729049; Fri, 06 Jul 2018 11:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530902729; cv=none; d=google.com; s=arc-20160816; b=bJm+2AptxvsCihJp4TwZX2fbDJvQrZyho3PPti5cYizkLNYtXLeACbuyIAtm+ifl/E TOXW9RdxkDNeZOXPcgOJnYeVEfY2AFMZ3hpC8ZbhXmPaiXrlRfjMqh73Y+ga64zC6K9v Z1r94oB7Osd2RLI1X2NL7JJsy54ZxQsMKPmU2PD6p2Xtt+qT0MMafUM8kgBKm5rsTBtB qKyTdsPEbniA9UUlMpYuKRonyT6GGSO6/ILp3uRH3cwS6YIIyV/HPntqU+QBZ0wdWfxi rq9/TVKXCd9OeTJKNg0Y5w9KGJReaxBRhmpin9zmuaiWBhVTuCLExAUXd/dDqrUi3TGj hePA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=iNJp3bA1HPrmxKSHRfEc7Kw5FQhP8REbtrVID/LEq/Y=; b=VWIFC15CO84wHwLYtuZVAqSottCFAg+71/ieiqNllJT2m8GLPm5pIfZaCXS6/Ojaap biOzI4542VLry6gD6eMcp2JuNCHB7i3RlYy4tFrDwA5WAyEC9/sA+zDLvQAw+RAXN5ku bj3+aBLHmjlfghdy/gUtu8sekAVhqIg4SGc7kR7iv2eGK4C8TWj7UL/4VpbXdyGdWigh 24ViWqoQgD/+s70IWepE41Lj0wlIeDXb2ELIy7XwIBjeMecAWq+bLgxPjhQooH31+81g U3uAjvds+t5pjH0u6qQ1mb7Bowj1cBsdlHgK2vtAj18IPqN58Bj5dej5+9fRB3OQPUm/ SGpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LdZY/R6M"; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30-v6si8621722pla.110.2018.07.06.11.45.28; Fri, 06 Jul 2018 11:45:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LdZY/R6M"; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934476AbeGFSp1 (ORCPT + 10 others); Fri, 6 Jul 2018 14:45:27 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:38991 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934424AbeGFSox (ORCPT ); Fri, 6 Jul 2018 14:44:53 -0400 Received: by mail-lj1-f193.google.com with SMTP id t7-v6so9821170ljj.6 for ; Fri, 06 Jul 2018 11:44:52 -0700 (PDT) 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=iNJp3bA1HPrmxKSHRfEc7Kw5FQhP8REbtrVID/LEq/Y=; b=LdZY/R6M4rhE+IKqQQUFuqQJmpbcPPuaz1+YxRWbd8lMFrhCyIZ/LyKg4FNFjdf/MA IzDmx7EgDblTUdYWZF/92tY/qZEzUSQoI/5+F3lJZcyFnw9bzaPFalanhnjaD7bfGaXk lfbTknJxUBf7oNu4+DnGolEo81nJRytAxUan4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iNJp3bA1HPrmxKSHRfEc7Kw5FQhP8REbtrVID/LEq/Y=; b=ZV0ULM58VijaZVLdC2OUPmzrTrjxyxrucldJt53E+If645+fyA97CCUsy2It4n8nVl e2kUU/lHt89Y+86tCP0gcogTJL5K2YW01KNj7ZZCP5e91odHsDCVY3xchLLKLrJjYC2R U/k0/a9gTgftnTjr6oA5f1lbnwt7bDZ/7xDWk2urLx9emYAiuq37ZmQ4MlFwDnagHt21 Rk3WyJTyttow1D13Uq+NJEX/Ktr/RCtkOV2wSI/7WER+aWPvl21Aj1oFQwxaNfF/kqsZ I9WGdRJqcouyqBqcO7RfXmvNVsnzUDS4NdriwO3kL9XPewxA910AQv0dVoRGs6FbuXzl tp8Q== X-Gm-Message-State: APt69E3s3Og70kPy9td4vVFp/JVVG1NI/73XRrnzThcj+B2VTkk5010h OYmqVZhzpDejw/3EO1U0SwMINg== X-Received: by 2002:a2e:954e:: with SMTP id t14-v6mr3408437ljh.68.1530902691774; Fri, 06 Jul 2018 11:44:51 -0700 (PDT) Received: from localhost.localdomain (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id h65-v6sm2312063lfb.22.2018.07.06.11.44.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jul 2018 11:44:51 -0700 (PDT) From: Ivan Khoronzhuk To: grygorii.strashko@ti.com, davem@davemloft.net Cc: linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH 1/2] net: ethernet: ti: cpsw: use BIT macro Date: Fri, 6 Jul 2018 21:44:44 +0300 Message-Id: <20180706184445.29111-2-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180706184445.29111-1-ivan.khoronzhuk@linaro.org> References: <20180706184445.29111-1-ivan.khoronzhuk@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org It's needed to avoid checkpatch warnings for farther changes. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) -- 2.17.1 diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 093998124149..f355e65323f3 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -253,23 +253,23 @@ struct cpsw_ss_regs { #define RX_DSCP_PRI_MAP7 0x4c /* Rx DSCP Priority to Rx Packet Mapping */ /* Bit definitions for the CPSW2_CONTROL register */ -#define PASS_PRI_TAGGED (1<<24) /* Pass Priority Tagged */ -#define VLAN_LTYPE2_EN (1<<21) /* VLAN LTYPE 2 enable */ -#define VLAN_LTYPE1_EN (1<<20) /* VLAN LTYPE 1 enable */ -#define DSCP_PRI_EN (1<<16) /* DSCP Priority Enable */ -#define TS_320 (1<<14) /* Time Sync Dest Port 320 enable */ -#define TS_319 (1<<13) /* Time Sync Dest Port 319 enable */ -#define TS_132 (1<<12) /* Time Sync Dest IP Addr 132 enable */ -#define TS_131 (1<<11) /* Time Sync Dest IP Addr 131 enable */ -#define TS_130 (1<<10) /* Time Sync Dest IP Addr 130 enable */ -#define TS_129 (1<<9) /* Time Sync Dest IP Addr 129 enable */ -#define TS_TTL_NONZERO (1<<8) /* Time Sync Time To Live Non-zero enable */ -#define TS_ANNEX_F_EN (1<<6) /* Time Sync Annex F enable */ -#define TS_ANNEX_D_EN (1<<4) /* Time Sync Annex D enable */ -#define TS_LTYPE2_EN (1<<3) /* Time Sync LTYPE 2 enable */ -#define TS_LTYPE1_EN (1<<2) /* Time Sync LTYPE 1 enable */ -#define TS_TX_EN (1<<1) /* Time Sync Transmit Enable */ -#define TS_RX_EN (1<<0) /* Time Sync Receive Enable */ +#define PASS_PRI_TAGGED BIT(24) /* Pass Priority Tagged */ +#define VLAN_LTYPE2_EN BIT(21) /* VLAN LTYPE 2 enable */ +#define VLAN_LTYPE1_EN BIT(20) /* VLAN LTYPE 1 enable */ +#define DSCP_PRI_EN BIT(16) /* DSCP Priority Enable */ +#define TS_320 BIT(14) /* Time Sync Dest Port 320 enable */ +#define TS_319 BIT(13) /* Time Sync Dest Port 319 enable */ +#define TS_132 BIT(12) /* Time Sync Dest IP Addr 132 enable */ +#define TS_131 BIT(11) /* Time Sync Dest IP Addr 131 enable */ +#define TS_130 BIT(10) /* Time Sync Dest IP Addr 130 enable */ +#define TS_129 BIT(9) /* Time Sync Dest IP Addr 129 enable */ +#define TS_TTL_NONZERO BIT(8) /* Time Sync Time To Live Non-zero enable */ +#define TS_ANNEX_F_EN BIT(6) /* Time Sync Annex F enable */ +#define TS_ANNEX_D_EN BIT(4) /* Time Sync Annex D enable */ +#define TS_LTYPE2_EN BIT(3) /* Time Sync LTYPE 2 enable */ +#define TS_LTYPE1_EN BIT(2) /* Time Sync LTYPE 1 enable */ +#define TS_TX_EN BIT(1) /* Time Sync Transmit Enable */ +#define TS_RX_EN BIT(0) /* Time Sync Receive Enable */ #define CTRL_V2_TS_BITS \ (TS_320 | TS_319 | TS_132 | TS_131 | TS_130 | TS_129 |\