Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 497B4807 for ; Thu, 10 Aug 2023 04:32:59 +0000 (UTC) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04E502111 for ; Wed, 9 Aug 2023 21:32:57 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTxLo-0008G4-PL; Thu, 10 Aug 2023 06:32:44 +0200 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1qTxLm-0006ay-MV; Thu, 10 Aug 2023 06:32:42 +0200 Date: Thu, 10 Aug 2023 06:32:42 +0200 From: Oleksij Rempel To: Marek Vasut Cc: Andrew Lunn , Wei Fang , "netdev@vger.kernel.org" , "David S. Miller" , Eric Dumazet , Heiner Kallweit , Jakub Kicinski , Oleksij Rempel , Paolo Abeni , Russell King Subject: Re: [PATCH] net: phy: at803x: Improve hibernation support on start up Message-ID: <20230810043242.GB13300@pengutronix.de> References: <20230804175842.209537-1-marex@denx.de> <45b1ee70-8330-0b18-2de1-c94ddd35d817@denx.de> <20230809043626.GG5736@pengutronix.de> <76131561-18d7-945e-cb52-3c96ed208638@denx.de> <18601814-68f6-4597-9d88-a1b4b69ad34f@lunn.ch> <36ee0fa9-040a-8f7e-0447-eb3704ab8e11@denx.de> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <36ee0fa9-040a-8f7e-0447-eb3704ab8e11@denx.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net On Thu, Aug 10, 2023 at 02:49:55AM +0200, Marek Vasut wrote: > On 8/10/23 00:06, Andrew Lunn wrote: > > On Wed, Aug 09, 2023 at 11:34:19PM +0200, Marek Vasut wrote: > > > On 8/9/23 15:40, Andrew Lunn wrote: > > > > > > Hm.. how about officially defining this PHY as the clock provider and disable > > > > > > PHY automatic hibernation as long as clock is acquired? > > > > > > > > > > > Sorry, I don't know much about the clock provider/consumer, but I think there > > > > > will be more changes if we use clock provider/consume mechanism. > > > > > > > > Less changes is not always best. What happens when a different PHY is > > > > used? > > > > > > Then the system wouldn't be affected by this AR803x specific behavior. > > > > Do you know it really is specific to the AR803x? Turning the clock off > > seams a reasonable thing to do when saving power, or when there is no > > link partner. > > This hibernation behavior seem specific to this PHY, I haven't seen it on > another PHY connected to the EQoS so far. Hm.. if I see it correctly I have right now kind of similar issues with Microchip KSZ9893 switch attached to EQoS. The switch is clock provider and I need to make sure that switch has CPU port enabled before probing the ethernet controller. -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |