Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 506BD18754F for ; Tue, 1 Oct 2024 22:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727820099; cv=none; b=U8d+oNu4/gGhwR/2iXXiSIeIwwJ9ZKloQhmFlIJMUZr+3Lg1QJbeKAtxSiAgd0pJqu2EWR7plf3iNwODIu3dD8X59vkutyX56639ACPAGpLOhgxLU9AIPUkG+YIIE5QzkTl8BmRoyE7Y3rU6J/bTss9PTcZqK26DtfUrcHtgE9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727820099; c=relaxed/simple; bh=A9Uj7plS4pQniwRsndoo4BtW9vcA3xXM4F93Xs2s2sQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KEtMDlnZcKtXFwynEaX+KDKdhysEaBXdLi+2Q0ZLsGM2oXn/pLpJIk+TE/rWPFAw5egt1uXQJ5tV70MgZBNTx0JL0LjKZzn5/oyblHkVGYDZPSaD1xDh6MmT6CzmH+hlfqOaT6JvOyIpcwsEZSAkK/WaR2IC/QvBcsdx7XRbT78= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=zGfzcXIe; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="zGfzcXIe" 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=FKpbw9Uxxm1/Gc6q+N6cP4psHIAMvgo0/79kAYtDZEo=; b=zGfzcXIeFaQbqg1H88SF9RtM5B JHDgjGCz1hTEnC3lHayUYI8/Gs2ymaiucTdosDvKGhAONKSyykv1Jqvuc9ngJ0C0eHJp+GouRsVvw fZtc7tURnQ7AWy2OVFteGBUwHCQymjY1/9v3eXn13KXxXdPEOD7X5QxpGlTRIXW9ORCURawGBUNJl pZX5VgTJiNxmSHHXzR5jKHuPSzS9Wle3CaGghill9/rIiDs+qPQt4SFQLl7cpKbKo2aA5a5lo7j03 hA9jWXSQM7d5Tk/Ml7DgG7CI4+M7r9hZdobzBpZKVHrr4440liC5TuGNeAmP5KVQfScfCcmv43QiT Y8HW2JVg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:56570) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1svkvj-0006Ub-2L; Tue, 01 Oct 2024 23:01:15 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.96) (envelope-from ) id 1svkvd-0005HK-0b; Tue, 01 Oct 2024 23:01:09 +0100 Date: Tue, 1 Oct 2024 23:01:09 +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: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Tue, Oct 01, 2024 at 11:34:42PM +0300, Serge Semin wrote: > Hi Russell > > On Tue, Oct 01, 2024 at 05:04:10PM GMT, Russell King (Oracle) wrote: > > Move the PCS reset to .pcs_pre_config() rather than at creation time, > > which means we call the reset function with the interface that we're > > actually going to be using to talk to the downstream device. > > > > Reviewed-by: Vladimir Oltean > > Tested-by: Vladimir Oltean # sja1105 > > Signed-off-by: Russell King (Oracle) > > Continuing the RFC discussion. As I mentioned here: > https://lore.kernel.org/netdev/mykeabksgikgk6otbub2i3ksfettbozuhqy3gt5vyezmemvttg@cpjn5bcfiwei/ > The PCS-reset procedure actually can be converted to being independent > from the PHY-interface. Thus you won't need to move the PCS resetting > to the pre_config() method, and get rid from the pointer to > dw_xpcs_compat utilization each time the reset is required. > > So why not to merge in my patch to your series as a pre-requisite > change and then this patch can be converted to just dropping the > xpcs_find_compat() method call from the xpcs_init_iface() function? > Alternatively the dropping can be just incorporated into my patch. I'm wondering why we seem to be having a communication issue 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. The more differences there are, the more chances there are of regressions. So, again, no.. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!