Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1459496rbb; Mon, 26 Feb 2024 09:54:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwTS8YEWPKwqze/JcCREGfHNKIUJvii432doaIPB4TOoAYkUgH4ozZlAiZwAgFP0OqqyJZDjeOIA4gIugnt7KR4aLzWUr3KwnSrDOKQw== X-Google-Smtp-Source: AGHT+IH/bGeRInv4q1BQ1OMV/z/6QLFmK9iHnOYte5pECcpL8ZEDT5RBFG0hiixLK00RMhXuJttm X-Received: by 2002:a05:620a:13eb:b0:785:9c70:c7fa with SMTP id h11-20020a05620a13eb00b007859c70c7famr9428920qkl.1.1708970040095; Mon, 26 Feb 2024 09:54:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708970040; cv=pass; d=google.com; s=arc-20160816; b=gNzyOgaH37tpN0nXc26fYM1SU0C4DuRTudi9Hqoh3SXtpHzExHHfH496J0Zkd+/bN6 LfuzoyawmoHhdcL/H6KqBzkNYZPndXAJQ2hsdotbu4iaBOtG9uhDEHj0mDEUfQOfl5hJ ISAptaJImH5PQTomUy8szTceaORD998VUA0VVHLjmcRp8jE2CYCCNWY+9RxzWVVJ4sPH GhxKUaNtAIAMBGygzYJcHRdLAiq94qv+gu4miYZePFg08JTWXFgE+8KzTyWbWThHKhtG mAv6ZxhTiHrSUkzHGo7bRYyvn/PWf+iQJBqg/FaH4jKtdDHk97KE5WDrCiM8jiWA7ZpC MO1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=1p1DkU003gUsxt6igF3+hBD3UuLE8cg1CfVd//JadfU=; fh=QDNzpZU1JP63xTljW5Eg8AhnEGmVNPv62aXCpmisCI0=; b=Pqy3IGWNZHlQ2x8EfnijOrRE1HchjBTeWcp+tnHnW7PFyn1Tqw58/TIplKuzzpRBVs arU7PNP7cDBOgWLbyhOk/n9eD7L5J9hclg8r4isymyEPWqG/eFLaXyJSAfv1kW51a1g0 sTmRIf7AZdRGWXKkwsuI8HNOI0rbEgs8612XwMxRS2fC+iyTeMIfOgX4xv6nfUTxpxZn bphnH1xiyoEvEPWH6xgQyDqLoAQeP2UOIM8NROMmRq+rstN08GGk2Ql6TaenxOqtpH0W h8VyFXL3oY7bFfxfkhmzy2rQ2slkCTerRP+64LZCl6R2TxeyxLeJbKaZvkwPHGHNUzaC hiug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=jRI2fyrP; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-82106-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82106-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wm15-20020a05620a580f00b00787b8f702besi5604946qkn.56.2024.02.26.09.53.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:54:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82106-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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=jRI2fyrP; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-82106-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82106-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 D2FB51C210C0 for ; Mon, 26 Feb 2024 17:53:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57DF512EBC4; Mon, 26 Feb 2024 17:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="jRI2fyrP" 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 0BFB212DD9B; Mon, 26 Feb 2024 17:53:48 +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=1708970031; cv=none; b=TiNAujRF+9Fe4Lx0HuhZRoS/bRN4y9+85cj/6emYyKb0TIBimPUNjQ4b7UWO4IMI1EMhGU1bYkpPHiue3JVj7RVjyTnWhKHKXYgOjRWg/A7hnEibhjNqicBRrBNFLvLbZPMSXXiSlcX+9L3xNiI/gAOtybncFpQtaE3/UfKxgGY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708970031; c=relaxed/simple; bh=6fa34faceJzMXzcYCnRXGvqxI3/PFGNUCWHcn+SeQZ4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JCGx1wL0cvOxDOyrRVzf1RoftPLgcL5yEmq7348ccPcZpB62YeCH/HI+BQLW2MiViHux4e9XtE2ueM9NJepDC1ec229NhfOMv/eh1ARNQwtWU+Uq+R1yZnhoUC1n9hgAlGSdvSfSZHlMHIiQainJaAO0qz79ZcAw7pBxO/JwC/Y= 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=jRI2fyrP; 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 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=1p1DkU003gUsxt6igF3+hBD3UuLE8cg1CfVd//JadfU=; b=jRI2fyrPeFscsV9g9f+myW5X2z hdyGQwdM2T8fz2FQw7aITmvRPFIwHyNUzWdCi70QGWjYTZZuQquWYgXY/3rmX/7+P7g53P+JJssDU vV5PExCJxuco9vKsedkgIKHdJYmtIlNDBcJtzOAZvE0xvZSKAUTyqqvExhVD6vQukWs5A7hvPnwJh kd67N4mO74vp5jRmBNWieIkt5d87lhrFw+bb0H6E0fZhfJKF9N1+gtjhBgpr37wVp81OrqrvPNHYz B5CcciKj4X1e4QZZRgwmbpdllbxLHCxh79oLwe1JEJgVY1+FdsrgfnAykQcsuRzJMgmvvfb6lS1q9 dN2gPVJw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:48730) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1refAV-0004Y9-35; Mon, 26 Feb 2024 17:53:36 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1refAR-0006cv-9Z; Mon, 26 Feb 2024 17:53:31 +0000 Date: Mon, 26 Feb 2024 17:53:31 +0000 From: "Russell King (Oracle)" To: Florian Fainelli Cc: Andrew Lunn , Oleksij Rempel , Wei Fang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Shenwei Wang , Clark Wang , NXP Linux Team Subject: Re: [PATCH net-next v6 5/8] net: phy: Immediately call adjust_link if only tx_lpi_enabled changes Message-ID: References: <20240223094425.691209-1-o.rempel@pengutronix.de> <20240223094425.691209-6-o.rempel@pengutronix.de> <84e1368d-ec6a-48af-945b-509528c45dff@lunn.ch> <6af3406a-7968-41e5-bf6e-71d020d8b28a@broadcom.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=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Mon, Feb 26, 2024 at 09:50:02AM -0800, Florian Fainelli wrote: > This is the source of the concern, we don't know which MAC drivers we might > end-up breaking by calling adjust_link(link == 1) twice in a row, hopefully > none, because they should be well written to only update the parameters that > need updating, but who knows? Just quickly... There are some (I went through a bunch.) They don't support EEE. I haven't been through all though, so there could be some which support EEE and where adjust_link() with phydev->link=true twice in a row could result in badness. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!