From mboxrd@z Thu Jan 1 00:00:00 1970 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 75F73C83F01 for ; Sat, 26 Aug 2023 14:54:25 +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:In-Reply-To:MIME-Version:References: 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: List-Owner; bh=iirWPhnwy6VxVyuWhwXWI6byg+nTsASmy6Vw8HBTQqU=; b=MjXo7RJ11PsNPw lXjo7jaSA9rRW15zoJWaPn73rVuxjQEzdX14cieWE54DStOA6/ggraHmh5776dmBJaES8+Oe3qkM3 SPk/Tu6WjgrFHFOHUlYMXLkeaRH9Tm8O6Suo2KNq4h3IYJqjIl3FOIf57Xf9iaKVVE7JgmmXCUwuD Jpi6pPTCKrLfmdgf//Dqa8HlqS7rJAgffICkIBmp4K3aYx9sfxOoVyUyMeu32QEc2gYOBcxSMZ9dI 1M4VuUs9nBzZ1scbRaCQrUhvikIMbDqHHRSLtverjjAi7JwQBX5d0Q0h9xImGlokQrQMb/9pS7iJw yX3IJzyZxc5CgS3OU0Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZufr-006zsu-2I; Sat, 26 Aug 2023 14:54:03 +0000 Received: from [2001:4d48:ad52:32c8:5054:ff:fe00:142] (helo=pandora.armlinux.org.uk) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZufn-006zsW-34 for linux-arm-kernel@lists.infradead.org; Sat, 26 Aug 2023 14:54:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References: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:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XvrmkOBIBL2yzNCs3oBH8eiEWLRpItGIKPxS8cClzPI=; b=Hi6eaxOMUvV63VLOFfxaiqREGf msmZdihLKwkrGyV4RClmbtvOyw3bM0RublCdxCaSME79MIEDc3SJahWzDxBG6Fef4zzjnq8vTHJKu z++P4nVjINb0nWM76nnwTKzHpmdG7YevzWkXTKpsSULAXMl3G6EE1cn1/NYEV4kqqat1S/ewJZJnZ DY/aueqAJjCUk2IdvFnncr1UjdqYs9c0GvvXN20e0QinPsL3FvbM2HYsCGu/ZsLMHYdCdrIfhhyTD UynclqsQAqK8tgK74vbVU2ChVo/OJA3hRzV+ttkilEwdvq+YIjJT4AMj3hnSmTsVahhAxIoysm/qg FQXH0Qnw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47450) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qZufg-0006I1-0w; Sat, 26 Aug 2023 15:53:52 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qZuff-0001Zw-En; Sat, 26 Aug 2023 15:53:51 +0100 Date: Sat, 26 Aug 2023 15:53:51 +0100 From: "Russell King (Oracle)" To: Serge Semin Cc: Alexandre Torgue , Jose Abreu , Andrew Lunn , "David S. Miller" , Eric Dumazet , Feiyang Chen , Heiner Kallweit , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , netdev@vger.kernel.org, Paolo Abeni Subject: Re: [PATCH net-next 08/10] net: stmmac: move xgmac specific phylink caps to dwxgmac2 core Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230826_075400_014677_C92B09BE X-CRM114-Status: GOOD ( 16.28 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Aug 26, 2023 at 04:36:46PM +0300, Serge Semin wrote: > On Thu, Aug 24, 2023 at 02:38:29PM +0100, Russell King (Oracle) wrote: > > Move the xgmac specific phylink capabilities to the dwxgmac2 support > > core. > > > > Signed-off-by: Russell King (Oracle) > > --- > > drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 10 ++++++++++ > > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 10 ---------- > > 2 files changed, 10 insertions(+), 10 deletions(-) > > > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c > > index 34e1b0c3f346..f352be269deb 100644 > > --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c > > +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c > > @@ -47,6 +47,14 @@ static void dwxgmac2_core_init(struct mac_device_info *hw, > > writel(XGMAC_INT_DEFAULT_EN, ioaddr + XGMAC_INT_EN); > > } > > > > > +static void xgmac_phylink_get_caps(struct stmmac_priv *priv) > > Also after splitting this method up into DW XGMAC v2.x and DW XLGMAC > v2.x specific functions please preserve the local naming convention: > use dwxgmac2_ and dwxlgmac2_ prefixes. The only possibility I have would be to implement two functions with different names but are functionally identical, since I have no further information. The new code is functionally identical to the code it replaces - as explained in my previous response. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel