From patchwork Tue May 28 11:48:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 13676542 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 634C0C25B78 for ; Tue, 28 May 2024 11:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=72UDGZ/ZUI0MhYJR1OfrIKtlW9Z1GUcV3fHiwGhqFuA=; b=TQwtcUfx+rqb9k 3cD6uoXbEwIwRaXeSRSigfbWr5+nZaOV7ftz5iR/zeWYQgq5eCSsgBgOQ5XOMcnnKUB0CXEsrvXIy PPUQ/zBQ9z6NVXZrVkLLNvGVgGARb8i3LnbVGXEj/HMM8mXskVyzxPGFu8OOCniMs44Iuhzjjz8eW rcKTeDu5BwCEL7CK7fRs2wqEZWL2TUKejoAIFzAoT6uX5xl52PsBWV0ggO3CfyKv4I7puE2ZumdwO LN6Z5lwfQFU62U1+z8MiRncxKUdezWoMO9VL9LVY0tbgqgUAjLsbF9SMRYfjCwuQM0CBHfOkIbLBm dCLD9fQaA37o1EJK13dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBvJl-00000000R3n-4AJ6; Tue, 28 May 2024 11:48:38 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBvJj-00000000R1c-09iQ for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 11:48:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iW37ByRUheosSAi4h2AMUwhdo6LLFgx25HP6KevTozY=; b=gKQhmYIFgsZd3z8qvGmWoSn5Ri fS0GEik5xOLBYbNQnlni+NNIIaM7hTRSYyY7ZlXbGLTBer0Dc9Y42TklaoXDNkh4lOpJOB9ys+GNR hZGtpN36gmjfx/PZzMRm9AHoU93uAsR0VfmC/fPSOvoGY/juMS/y9xO1B7tGGJWXSDwlIuxIwKdnz IkvfrTLeTOmMvwNX21KpnxmP1wodbxdEXsIyLBHCJtui7bucuvQqGfpFh2CyCpTEi9xl7g2paXQsF Sik7P1Leg4JnZghIocRwOgjYKqDClLYO8nm6APZDGoWnnLmHZ5yVRVDvbdMxxkN3L1epIQCbnH49P fWWeHqhg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:58444) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sBvJT-0004hP-1g; Tue, 28 May 2024 12:48:19 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sBvJS-0003EW-QH; Tue, 28 May 2024 12:48:18 +0100 Date: Tue, 28 May 2024 12:48:18 +0100 From: "Russell King (Oracle)" To: Serge Semin Cc: Alexandre Torgue , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jose Abreu , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , netdev@vger.kernel.org, Paolo Abeni Subject: [PATCH net-next 0/5] net: stmmac: cleanups Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_044835_099163_676E88E7 X-CRM114-Status: UNSURE ( 8.45 ) X-CRM114-Notice: Please train this message. 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 Hi, This series removes various redundant items in the stmmac driver: - the unused TBI and RTBI PCS flags - the NULL pointer initialisations for PCS methods in dwxgmac2 - the stmmac_pcs_rane() method which is never called, and it's associated implementations - the redundant netif_carrier_off()s Finally, it replaces asm/io.h with the preferred linux/io.h. drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 8 +------- drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 8 -------- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 6 ------ drivers/net/ethernet/stmicro/stmmac/hwif.h | 3 --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 8 +------- drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h | 17 ----------------- 6 files changed, 2 insertions(+), 48 deletions(-)