Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5106078pxb; Wed, 19 Jan 2022 11:08:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQU/IXxKmvdwlRnkN0TFoxMV7x11bZ8yqobtdnV87DQHvyIxACgieRIfJ9Jhy3WzlJH4d/ X-Received: by 2002:a17:90b:4b84:: with SMTP id lr4mr5916045pjb.66.1642619298980; Wed, 19 Jan 2022 11:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642619298; cv=none; d=google.com; s=arc-20160816; b=uy8l6FdpzHzL/SxdL+GkPBhOXeL371HIrK+sENd2VgzSx6yk0HPjsb7Ns4OzSuDEIk W9rywpfpLSSTHXd6uHgQ294prfIBGGsSnPuOQIP/15ar1c+bl/4aQhu2XnfwWqvmAiX3 dgl4qlu4M13Rb65sa1lbhLeGRtcb0Eoh/C/BlhKZOhxC8in0zdX36NVSeVgJb7VJRqmO 0LrPY8TyQDvX07Sd8N3vT52jORnVILAjncw5IXLaJ2T6M+aqRg+TDqvojUQuu6ikQ934 PDofbvDlMVRU3IE21GVUPsK3g9w93A92aLCmvssky19p58flfJX16yB3DJC905YzsZn5 ZDUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=mWSZG0Ax3bJWOFN+N0XZCp5MhtWjxnVa5DHdf2f6PSs=; b=bOAn4J02OgGGLtWULxx9edTIc3a+f/i2uQ6ZBBzf2jDZ5ZsLtNTFsR2SzZxBlwj8jP NPsz/8ZTFWLqZGRCs6WkmucI09HE+xntR/XuK12Zw30l0bHQsn3VHTiAgvsBkD+q0FXj UJWniDjz6ua3C4tT3Hv17+Vq5KDN3WJcqzPf6rhLmB9vXvsuP8exayXhpOHkD//TxcKJ pZGXRV6q0nYugyiNWL0M4wLmVIEvM7KWvFfQi6hfqMp9j9P4BiSP6QWDrtpiBiLW1Hwn lfL4eDGHGZxFjVvIr+5fQTEGskscXSMVgefqaBseJ/vjqFm9tDf3vOLB1qu+YdfsE8zR +ceQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s67si761528pgs.322.2022.01.19.11.08.07; Wed, 19 Jan 2022 11:08:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239793AbiARFw5 (ORCPT + 99 others); Tue, 18 Jan 2022 00:52:57 -0500 Received: from mo-csw-fb1515.securemx.jp ([210.130.202.171]:57876 "EHLO mo-csw-fb.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239742AbiARFw4 (ORCPT ); Tue, 18 Jan 2022 00:52:56 -0500 X-Greylist: delayed 409 seconds by postgrey-1.27 at vger.kernel.org; Tue, 18 Jan 2022 00:52:56 EST Received: by mo-csw-fb.securemx.jp (mx-mo-csw-fb1515) id 20I5k9f8032622; Tue, 18 Jan 2022 14:46:10 +0900 Received: by mo-csw.securemx.jp (mx-mo-csw1516) id 20I5jjnr006451; Tue, 18 Jan 2022 14:45:45 +0900 X-Iguazu-Qid: 34trEBPRjdLYs2IbyW X-Iguazu-QSIG: v=2; s=0; t=1642484744; q=34trEBPRjdLYs2IbyW; m=528tXebc3ETxb6iOW3urXJxBf10IaN7YaOPM9/hwg+4= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1512) id 20I5jhQl013820 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 18 Jan 2022 14:45:44 +0900 X-SA-MID: 30475371 From: Yuji Ishikawa To: "David S . Miller" , Jakub Kicinski Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, nobuhiro1.iwamatsu@toshiba.co.jp, yuji2.ishikawa@toshiba.co.jp Subject: [PATCH 1/2] net: stmmac: dwmac-visconti: Fix bit definitions for ETHER_CLK_SEL Date: Tue, 18 Jan 2022 14:39:49 +0900 X-TSB-HOP: ON X-TSB-HOP2: ON Message-Id: <20220118053950.2605-2-yuji2.ishikawa@toshiba.co.jp> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220118053950.2605-1-yuji2.ishikawa@toshiba.co.jp> References: <20220118053950.2605-1-yuji2.ishikawa@toshiba.co.jp> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org just 0 should be used to represent cleared bits * ETHER_CLK_SEL_DIV_SEL_20 * ETHER_CLK_SEL_TX_CLK_EXT_SEL_IN * ETHER_CLK_SEL_RX_CLK_EXT_SEL_IN * ETHER_CLK_SEL_TX_CLK_O_TX_I * ETHER_CLK_SEL_RMII_CLK_SEL_IN Signed-off-by: Yuji Ishikawa Reviewed-by: Nobuhiro Iwamatsu --- drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c index e2e0f9778..43a446cea 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c @@ -22,21 +22,21 @@ #define ETHER_CLK_SEL_RMII_CLK_EN BIT(2) #define ETHER_CLK_SEL_RMII_CLK_RST BIT(3) #define ETHER_CLK_SEL_DIV_SEL_2 BIT(4) -#define ETHER_CLK_SEL_DIV_SEL_20 BIT(0) +#define ETHER_CLK_SEL_DIV_SEL_20 0 #define ETHER_CLK_SEL_FREQ_SEL_125M (BIT(9) | BIT(8)) #define ETHER_CLK_SEL_FREQ_SEL_50M BIT(9) #define ETHER_CLK_SEL_FREQ_SEL_25M BIT(8) #define ETHER_CLK_SEL_FREQ_SEL_2P5M 0 -#define ETHER_CLK_SEL_TX_CLK_EXT_SEL_IN BIT(0) +#define ETHER_CLK_SEL_TX_CLK_EXT_SEL_IN 0 #define ETHER_CLK_SEL_TX_CLK_EXT_SEL_TXC BIT(10) #define ETHER_CLK_SEL_TX_CLK_EXT_SEL_DIV BIT(11) -#define ETHER_CLK_SEL_RX_CLK_EXT_SEL_IN BIT(0) +#define ETHER_CLK_SEL_RX_CLK_EXT_SEL_IN 0 #define ETHER_CLK_SEL_RX_CLK_EXT_SEL_RXC BIT(12) #define ETHER_CLK_SEL_RX_CLK_EXT_SEL_DIV BIT(13) -#define ETHER_CLK_SEL_TX_CLK_O_TX_I BIT(0) +#define ETHER_CLK_SEL_TX_CLK_O_TX_I 0 #define ETHER_CLK_SEL_TX_CLK_O_RMII_I BIT(14) #define ETHER_CLK_SEL_TX_O_E_N_IN BIT(15) -#define ETHER_CLK_SEL_RMII_CLK_SEL_IN BIT(0) +#define ETHER_CLK_SEL_RMII_CLK_SEL_IN 0 #define ETHER_CLK_SEL_RMII_CLK_SEL_RX_C BIT(16) #define ETHER_CLK_SEL_RX_TX_CLK_EN (ETHER_CLK_SEL_RX_CLK_EN | ETHER_CLK_SEL_TX_CLK_EN) -- 2.17.1