From patchwork Mon Jun 24 13:26:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13709524 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C446FC2BD09 for ; Mon, 24 Jun 2024 13:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WtEe7sDqfN9JW3LcLHq6hNyDw8ZBCvPF/f0tUgUw0Ek=; b=3e2jBUYvbmS70YfyBirIPrpkyE aFej6cbs9kAdb+grjmw7wAo1sSVFWoYe0RVVYQmlLFnBug6t/RaxzVtQeRFM4ldlcCXW7Bv856/VX JKBY8g/KDtNi5DdtEbC9JLxKG2fkxvafBljjkTq5uRO8CStQfbCR+1HcFdn2WWfGWV6i0DACYE8l/ jB4PaK2AbarVtP59VaYQYuuWIvfl9LAN0gUk5BRgGXB9+4LxIYg6C2ly6txRZgOeqQZAQXkWcjIyu r689eRsED+ij4OV5Ki7Czof3cHFfpaOAHGpRfSmIqwajiyHrCzISH5ZVyb3yaRFlJwqgVLWrvBncS NK42g9sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLjlF-0000000GvYU-3TJE; Mon, 24 Jun 2024 13:29:34 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLjkZ-0000000Gv6v-3kNo for linux-arm-kernel@lists.infradead.org; Mon, 24 Jun 2024 13:28:53 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2eaa89464a3so50421541fa.3 for ; Mon, 24 Jun 2024 06:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719235729; x=1719840529; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WtEe7sDqfN9JW3LcLHq6hNyDw8ZBCvPF/f0tUgUw0Ek=; b=MXHeXFOdrhM7TZ3hRJAsF/GEr6cr4H44eW+Jf7t0xwzkQumRMjdNSPGI/ZOffsfxNl 4ngfEgQhq4uaxiSjKoUHbbDIY9KSkbNGG76tCYJthk5voArD9LYzIPV3k5hW6Yylfopj C4CCuwVevMGfBr5/4W3nKbD5f6Z6FioJ58xUYQ5WW/OZCXWDoY11ZF/p8/F6MsFb0Wob d3eWwwDBJMNyvhC31Hh34+5+vmCfcxjJRtPVc8NkYdugsmAUpDgotWjifSZLdNX+iiUS SNKqoy/WHRs4U2ALIyGDtA/E3o5Y0tODsiOfx78C2NhAuNpH089sIxrZU9Rj31/6ChSz beCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719235729; x=1719840529; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WtEe7sDqfN9JW3LcLHq6hNyDw8ZBCvPF/f0tUgUw0Ek=; b=ZVBJpYgl4mghOqz7xeq7Nbkfq4jWHHQ4BjFpGIyu9oYdgBBS2TTELiM6B+mLMwayr4 cH7hpjDkUuooYItd+T1v2+MGtWYfkFDkj0Z5jrqFec3T8OI/Ajhl12vtjzdQEgW2Fh3s xiI8pSpJNtOPLvkBeT+eCCbopickUHVV3qlLPmhsQ8OEG7B8+qFzqW20nYxk35IR5IjG /gR2yNLjns1scPsQx3H6kQ2hYrBUhUq0Ca3d5pXUutj1Kj7FAnROdQWAFu5jmsJBUpul hn3E+4KcNZ+lWwkNvrgn48+ADcY5JZw6+JMl1VAi5qZzHzbOnWCtw+58ztocOtD9/Xfp EKSQ== X-Forwarded-Encrypted: i=1; AJvYcCVbX58v9WVXXc7XW6DNGF5EsqhhBEK13m5E6uzCi76mQqdxd650rkRL7HWF1xiPKz+hOiZDjkcIclYKtDHBfC6uG5Y2pzIWddLbvH9UdOsqiQ0jplc= X-Gm-Message-State: AOJu0YzjpwH4h8BEpxesASn72ZKNF83jkcEwZx9TSW3PsyvgWykrRC6F uNOQal+E2WReL2QLwltly6ZqtinpksagejmvgZQ6PEWvQGalxSFW X-Google-Smtp-Source: AGHT+IFPP14441T+3czwKEItmbrOsbND2YdLL8uZN7bzYoWhRPQpBDSL2HCd8X2teLzstMx3I7E0FQ== X-Received: by 2002:a05:651c:1988:b0:2ec:637a:c212 with SMTP id 38308e7fff4ca-2ec637ac2b5mr15471271fa.39.1719235729169; Mon, 24 Jun 2024 06:28:49 -0700 (PDT) Received: from localhost ([213.79.110.82]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ec4d602519sm9997201fa.6.2024.06.24.06.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 06:28:48 -0700 (PDT) From: Serge Semin To: Russell King , Andrew Halaney , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: Alexei Starovoitov , Jesper Dangaard Brouer , John Fastabend , Daniel Borkmann , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC net-next v2 17/17] net: stmmac: pcs: Drop the _SHIFT macros Date: Mon, 24 Jun 2024 16:26:34 +0300 Message-ID: <20240624132802.14238-9-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_062852_087399_11BB3099 X-CRM114-Status: GOOD ( 11.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The PCS_ANE_PSE_SHIFT and PCS_ANE_RFE_SHIFT are unused anyway. Moreover PCS_ANE_PSE and PCS_ANE_RFE are the respective field masks. So the FIELD_GET()/FIELD_SET() macro-functions can be used to get/set the fields content. Drop the _SHIFT macros for good then. Signed-off-by: Serge Semin --- drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h b/drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h index a17e5b37c411..0f15c9898788 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h @@ -43,9 +43,7 @@ #define PCS_ANE_FD BIT(5) /* AN Full-duplex flag */ #define PCS_ANE_HD BIT(6) /* AN Half-duplex flag */ #define PCS_ANE_PSE GENMASK(8, 7) /* AN Pause Encoding */ -#define PCS_ANE_PSE_SHIFT 7 #define PCS_ANE_RFE GENMASK(13, 12) /* AN Remote Fault Encoding */ -#define PCS_ANE_RFE_SHIFT 12 #define PCS_ANE_ACK BIT(14) /* AN Base-page acknowledge */ /* SGMII/RGMII/SMII link status register */