Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp830083rdb; Fri, 23 Feb 2024 00:54:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVyP5R+epcqmRNxcH6W+2H4b1iARvLW+EVX5XbtLUZi6ec+S2xtismDL/5GqGgTCr0ciPFk2Yv/8q8jASjMbhBwfD2+7f2Ia0HbaXoBGQ== X-Google-Smtp-Source: AGHT+IHTuSntxis3oBAQ6/m8HfXTXupuEm+YQeiSM9bcy5Ugl8UafCNL+4Jrq9GKusJg4gLlMVec X-Received: by 2002:a05:620a:a53:b0:787:b899:dcd1 with SMTP id j19-20020a05620a0a5300b00787b899dcd1mr101297qka.21.1708678476085; Fri, 23 Feb 2024 00:54:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708678476; cv=pass; d=google.com; s=arc-20160816; b=lgIm5fm5XNdd3vW41bJE7qtnkEOpfSbw7koPbO8Henz9e6m5EbEvLj3ryBOax2IMYD G6fLxDEc7nn3tUehU16k4iZf28xK8O9BoPy0W8DNWI7D6h1JpUaVKSaRlzBpHlrpaMlS u8Gt3a0bFxZ2fMBkKQrmjecwCMOm3HrKTgtxy8BdGu0Q3wv0LRX/0rCbfgx8O/CMvptf abBUVaGnvjRDwNFSPoxWzrI3b48lDHKcBF0Yz0wBPfmJJce+GxqZlkeprJy0jPFDBjVC 59pPM0lkf/iKAg8SK63BG9JxSUTEqHrp5fuLLLiCqzCYsnWxLc9DpXzup+CiZqALrLDq +Z9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=vf2euiee5ObeY/W0+KhbgWH/IVwFpRas0P9KMmfohkY=; fh=nSGnxiCkGHvSwdZzBWr8Vfb7nqrzKJPpGvKRznqghQo=; b=tFCrazTr3K1iFh+12kVjXMUuXd8cF10tdbEAuRxear7JDESALET6ECth5Y4vY/lfF6 GCGi205RPsnyf5JoD3ivIrzJ7QgwboJkQf05vF2zV0XaF05vPVa0A0YQCWMoMVycKacm WOGuXTKDD02ixtOn8kVie4IDeGxY5IEx0SXnwdJTrs9dHjUHGRlX8S/Bchg+p1YhpLOD +US/tHZpBs6ACi5L5a4B1rzNnSG0MD641pEUdbUSUeZBI81gddWesu7LYx21szoV5oW7 xIYf8x2hRUM8Z2Okuo+ZRuc06lFimcbkiv4Mo/TDws/iqtxF5MfLFfytxLPPhytzILGM LM4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-77956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77956-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bj28-20020a05620a191c00b00787b46b510bsi582097qkb.747.2024.02.23.00.54.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 00:54:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-77956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77956-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C53EE1C243B0 for ; Fri, 23 Feb 2024 08:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF7B61B26E; Fri, 23 Feb 2024 08:54:24 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 B7EE61AAA9 for ; Fri, 23 Feb 2024 08:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708678464; cv=none; b=hR1jxIsXDSgpnbZb++dDmpwUAw6kC7/vbPIBegstizuIzTlqXOGaGKP+8EgbJHLSejFA4XrqVDFXzG6ReWPc1iwkysTlG8ju0af9U4SIYId4nQGd/rgeyl/sFJUVPEUIMjgmdKG9zvqjQQkVnJq2hJH7i29S+bmGEV1CKblERyM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708678464; c=relaxed/simple; bh=LDZLhdmLJuLOyKoQoccELLdHvbxLoXzSeqTWkyO71zc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o/QYheWQiiGPzfNggk4Z5VX0rDPM+yh3hsc6FCXKz2EdSqkSq6UeOfYL0L+Ru63yEIy4bubAJHoYCkudxHVsFyKbqBiWmXmyRqVIG/7gWj4A6yY+K8t0tfIRIwTYVPT+o8x7Qzv/q4tz6jviNnFY3m1z1dE1mJh7PvsF+CRya0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rdRJt-0001Jm-1E; Fri, 23 Feb 2024 09:54:13 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rdRJq-002OHE-IO; Fri, 23 Feb 2024 09:54:10 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rdRJq-004DHH-1X; Fri, 23 Feb 2024 09:54:10 +0100 Date: Fri, 23 Feb 2024 09:54:10 +0100 From: Oleksij Rempel To: Florian Fainelli Cc: Wei Fang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Heiner Kallweit , Russell King , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Shenwei Wang , Clark Wang , NXP Linux Team Subject: Re: [PATCH net-next v5 3/8] net: phy: Add helper to set EEE Clock stop enable bit Message-ID: References: <20240221062107.778661-1-o.rempel@pengutronix.de> <20240221062107.778661-4-o.rempel@pengutronix.de> <572300ab-3475-4ea6-b6c9-9206f237171f@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <572300ab-3475-4ea6-b6c9-9206f237171f@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Thu, Feb 22, 2024 at 08:47:58PM -0800, Florian Fainelli wrote: > > > On 2/20/2024 10:21 PM, Oleksij Rempel wrote: > > From: Andrew Lunn > > > > The MAC driver can request that the PHY stops the clock during EEE > > LPI. This has normally been does as part of phy_init_eee(), however > > that function is overly complex and often wrongly used. Add a > > standalone helper, to aid removing phy_init_eee(). > > > > Signed-off-by: Andrew Lunn > > Signed-off-by: Oleksij Rempel > > Reviewed-by: Florian Fainelli > > It would be useful to also read whether the PHY is capable of stopping its > clock, this has IMHO always been missing. Clause 45 IEEE PCS Status 1 > Register (3.1) bit 6 reflects whether the PHY is capable of stopping its > clock. Agreed, there is a extra set of challenges with this functionality. For example stmmac will fail to reset DMA engine if PHY disabled clock. It will be good to handle it in a separate patch set. Regards, Oleksij -- 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 |