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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBF4EC74A5B for ; Fri, 17 Mar 2023 17:40:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230252AbjCQRkA (ORCPT ); Fri, 17 Mar 2023 13:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbjCQRjl (ORCPT ); Fri, 17 Mar 2023 13:39:41 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0E0EC5AE9 for ; Fri, 17 Mar 2023 10:39:19 -0700 (PDT) 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-Transfer-Encoding:Content-Type: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-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iHnR6VsoXLRrgo7RdT0e2Sj6OaG0kttlCIL24iJ+R/E=; b=f57Rqgoj74FE0JtuFHgjAPzlUC YkZquQYr1QP8+06LtLlZgr8Muz+A/OqU0kSmuZAAwyNcbcPFlxP+QJULHWbXjmLWLIV0rT2xExFz3 1OnuzugNDXfryvu/f+H79S0rVBW6053hsmkGT620nYfTY3Jr/RVIrKICS8Umy0G8biNGvaw8flKT7 KTupK78KTRZGXMD0eBLhLWDMpE+OEoBnZQAwMlubLi2trR2nWfuwmt2tWD3MMEKFFSHI0TGp6brUl eHmvfC/zgCjdespr5BxCPchEp03MrJ8wEv3fcUzOflYSWlXr51TucXysEQRTR25r7uVoKbHmrYULY dBwMN6EQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34204) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pdE2i-0003A5-F5; Fri, 17 Mar 2023 17:39:04 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pdE2d-0003dP-5d; Fri, 17 Mar 2023 17:38:59 +0000 Date: Fri, 17 Mar 2023 17:38:59 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Shenwei Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev Subject: Re: [PATCH 1/1] net: stmmac: start PHY early in __stmmac_open Message-ID: References: <20230316205449.1659395-1-shenwei.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Mar 17, 2023 at 06:34:13PM +0100, Andrew Lunn wrote: > > NAK. A patch similar to this has already been sent. > > > > The problem with just moving this is that phylink can call the > > mac_link_up() method *before* phylink_start() has returned - and as > > this driver has not completed the setup, it doesn't expect the link > > to come up at that point. > > > > There are several issues with this driver wanting the PHY clock early, > > and there have been two people working on addressing this previously, > > proposing two different changes to phylink. > > > > I sent them away to talk to each other and come back with a unified > > solution. Shock horror, they never came back. > > > > Now we seem to be starting again from the beginning. > > > > stmmac folk really need to get a handle on this so reviewers are not > > having to NAK similar patches time and time again, resulting in the > > problem not being solved. > > And just adding to that, Developers should also get into the habit of > searching to see if somebody has already tried and failed to solve the > problem. > > “Those Who Do Not Learn History Are Doomed To Repeat It.” > > Try avoiding wasting everybody's times by learning a bit of history. +1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000! (Yes, factorial too! :) ) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!