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 53B7BCF8549 for ; Wed, 2 Oct 2024 23:30:47 +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: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-Owner; bh=K4+fzEoUN3OhErOHpAnLCAX8h/ybmyblHSLZ2uyOM4g=; b=l8dMwv/1OmnRkLRcblD74O0RAG jHYamS6PwrdjY6RL3jAUs7JqGQ9OzF94Ua9mKOg3D8TMOUktvShWtql3jG2ffQxueocNfE6cXplkV hc4t4QepaKUGuS52T707mQAKeJBTfJYgTRTwIap0PpggvgWTH+n+4VT1FSQFumw9Tcw7rQlKBAokq R3kz3yLQo5EN3hzDzJMqb2JSIwEmtTmNeNagfy3X2U9ng3i8rrOrQJBFMRyzlgi2wthRaypY84Wd/ 7HVRqERK5m6EyBu9J09TTQXbRKB+nC2pKygn2SsWZA99m8CU1Q/txdwdjsiAqa0R+tSXQb6YP8d9w yjRvPV9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sw8nl-00000007kdG-2PlD; Wed, 02 Oct 2024 23:30:37 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sw8lD-00000007jq6-0VWN for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 23:28:00 +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=K4+fzEoUN3OhErOHpAnLCAX8h/ybmyblHSLZ2uyOM4g=; b=u+CHdYnmsfJUNPnJeKi1yY1De9 jRCs19Gq86vw5T2G4HikKQT70Ct9G7c5nIx4gP+0Xen9A923rwHj/sSx78lEXy40j0VxAUFadAUqh DTo3Aoh1t9xBpKcuU0ntEl9n53arRzHPmzNmHX7vwTQ4UcMJ8E/i5jZ3Dcd9Z+fgfQQNcm8sh7zQ3 thXATGFVxkKArbyNisoJBI2+EGuuahbP42x+uj14Gb2Czn9NPz1qkirPtYGK+vK+JH3C5XLg2gxAw pIZT62b62XgT5i/hnOc/A8+0rFsA4R6MG18Z0YyIiftCvrhE180QwQsaPTk/Fq50k3b1kDGYTbC3w H0DAY9BQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:37686) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sw8it-0008CU-29; Thu, 03 Oct 2024 00:25:35 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.96) (envelope-from ) id 1sw8ij-0006KH-1j; Thu, 03 Oct 2024 00:25:25 +0100 Date: Thu, 3 Oct 2024 00:25:25 +0100 From: "Russell King (Oracle)" To: Serge Semin Cc: Andrew Lunn , Heiner Kallweit , Alexandre Torgue , "David S. Miller" , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Jiawen Wu , Jose Abreu , Jose Abreu , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , Mengyuan Lou , netdev@vger.kernel.org, Paolo Abeni , Vladimir Oltean Subject: Re: [PATCH net-next 01/10] net: pcs: xpcs: move PCS reset to .pcs_pre_config() Message-ID: References: <68bc05c2-6904-4d33-866f-c828dde43dff@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_162759_185288_1840863F X-CRM114-Status: GOOD ( 44.52 ) 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 On Thu, Oct 03, 2024 at 01:56:27AM +0300, Serge Semin wrote: > On Wed, Oct 02, 2024 at 12:09:22AM GMT, Andrew Lunn wrote: > > > I'm wondering why we seem to be having a communication issue here. > > No communication issue. I just didn't find the discussion over with > all the aspects clarified. That's why I've got back to the topic here. > > > > > > > I'm not sure which part of "keeping the functional changes to a > > > minimum for a cleanup series" you're not understanding. This is > > > one of the basics for kernel development... and given that you're > > > effectively maintaining stmmac, it's something you _should_ know. > > > > > > So no, I'm going to outright refuse to merge your patch in to this > > > series, because as I see it, it would be wrong to do so. This is > > > a _cleanup_ series, not a functional change series, and what you're > > > proposing _changes_ the _way_ reset happens in this driver beyond > > > the minimum that is required for this cleanup. It's introducing a > > > completely _new_ way of writing to the devices registers to do > > > the reset that's different. > > > > I have to agree with Russell. Cleanups should be as simple as > > possible, and hopefully obviously correct. They should be low risk. > > In general as a thing in itself with no better option to improve the > code logic I agree, it should be kept simple. But since the cleanups > normally land to net-next, and seeing the patch set still implies some > level of the functional change, I don't see much problem with adding a > one more change to simplify the driver logic, decrease the level > of cohesions (by eliminating the PHY-interface passing to the > soft-reset method) and avoid some unneeded change in this patch set. > Yes, my patch adds some amount of functional change, but is that that > a big problem if both this series and my patch (set) are going to land > in net-next anyway, and probably with a little time-lag? > > Here what we'll see in the commits-tree if my patch is applied as a > pre-requisite one of this series: > > 1.0 Serge: net: pcs: xpcs: Drop compat arg from soft-reset method > - 1.1 Russell: net: pcs: xpcs: move PCS reset to .pcs_pre_config() > * This patch won't be needed since the PHY-interface will be no > longer used for the soft-reset to be performed. > 1.2 Russell: net: pcs: xpcs: drop interface argument from internal functions > - 1.3 net: pcs: xpcs: get rid of xpcs_init_iface() > * This patch won't be applicable since the xpcs_init_iface() method > will be still utilized for the basic dw_xpcs initializations and the > controller soft-resetting. > ... > 1.1x Serge: my series rebased onto the Russell' patch set > > Here is what we'll see in the git-tree if my patch left omitted in > this patch set: > > 2.1 Russell: net: pcs: xpcs: move PCS reset to .pcs_pre_config() > 2.2 Russell: net: pcs: xpcs: drop interface argument from internal functions > 2.3 Russell: net: pcs: xpcs: get rid of xpcs_init_iface() > ... > 2.1x Serge: net: pcs: xpcs: Drop compat arg from soft-reset method > + 2.1y Serge: net: pcs: xpcs: Get back xpcs_init_iface() > * Since the PHY-interface is no longer required for the XPCS soft-resetting > I'll move the basic dw_xpcs initializations to the xpcs_init_iface() > in order to simplify the driver logic by consolidating the initial > setups at the early XPCS-setup stage. This will basically mean to > revert the Russell' patches 2.1 and 2.3. > 2.1z Serge: the rest of my series rebased onto the Russell' patch set > > > > > Lets do all the simple cleanups first. Later we can consider more > > invasive and risky changes. > > Based on all the considerations above I still think that option 1. > described above looks better since it decreases the changes volume > in general and decreases the number of patches (by three actually), > conserves the changes linearity. > > But if my reasoning haven't been persuasive enough anyway, then fine by > me. I'll just add a new patch (as described in 2.1y) to my series. > But please be ready that it will look as a reversion of the Russell' > patches 2.1 and 2.3. Oh, sod it. Do whatever you bloody well want. I don't care. You're constantly arguing against me, and I've had enough of this. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!