Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1724446rbb; Mon, 26 Feb 2024 21:35:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXxlPT7eHbr3ZxT1t/YdGoQZYIkCbdwHK2M1EAbk7U0y4fPzN7EguHtg4unr2OWzu7uVKrTBtza9DcbaahKbW1THDsRLd6DVQnORB5vJQ== X-Google-Smtp-Source: AGHT+IHlYIMIFMmHUIQ6/9OSo/bC4HtvUup2224N6vm1m65Bq4CbWNLNurqpZBe4nvdlXvdccnja X-Received: by 2002:a17:907:984d:b0:a43:5c4f:711d with SMTP id jj13-20020a170907984d00b00a435c4f711dmr2756972ejc.38.1709012158458; Mon, 26 Feb 2024 21:35:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709012158; cv=pass; d=google.com; s=arc-20160816; b=Y7bCnZFlgknvXFauaFX4EnjkMfVbOR0Rpr86cjfQahXFhcuPVJItW8XC8JizDtTin3 DYx1GMWI3LpeeJQR7QSlQOL74iwZ1uhFPZfjdD/Rc2p2Op6WtpE/fKosVVYsfsVq2ISK dBDV+ykRHfNFtxoLvjPiQRaa+z63g/AqdMBcZsEx9ZMfLiNotQWA4sRUgTwdDvpxGMdG Omp/WZLtDI4I7kb/xD8jWOcwCrTXuJ4LX9i2ZjNnDThgE84J7S4cUnxF6mp+Swrzwi8e iDGIMkG69r35HmJ/PGD1cfdT9RJBkJGt0yBIAL+Oxg9FG7fNhik/twTx0AaCGxXHbX9h mbsw== 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=SRdiIzDHa+xb0okZWZnGV7FoAjnJ4ZN/FaQ5D6t7YsM=; fh=Fipikrk5RcuILvfM7Pgbw8sEgQvVaPjYpE4y1vA6ApM=; b=fGXqoEkE7vz1wCa4phm6ueA4IExGqyy1/XhMxmHoZNwQ6+4COMnhMDej2XQfPWpcsd uIzW3r4ZEeXRY4vD7haQ3O2EFn8GN4FDpy3vEIZvfJG/eB8Cv7iu+idx2rfvU4uYgPmO DwyI5bPi1MM33FQyzMWdVwTtY4cnmiOth3fjy/hJJCGxlzy+B9pcTNivIb9qt6YoRtxv tVB7uCpRlfzzgsceTTRC8F1uu/KORncUpERALhCBwBhior7uEGnSicG9/NL+yD6HiK+3 9b1eGJFodO8gKtIopMF9jjZN/R1B0hlc4NdTZfqgjSqdAEf2fSoC/wvgjP9W8SxOxM6A gIdQ==; 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-82722-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82722-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u16-20020a170906409000b00a3f180e5da6si414925ejj.273.2024.02.26.21.35.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 21:35:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82722-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-82722-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82722-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3B16E1F22A7E for ; Tue, 27 Feb 2024 05:35:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC47353373; Tue, 27 Feb 2024 05:35:49 +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 93A3C52F95 for ; Tue, 27 Feb 2024 05:35:46 +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=1709012149; cv=none; b=DdiDbaNPyj9nT1uk4mo0ZimqQQg7hWbOKyq5KgdobILTfAvzmd11ZTYvhY2sOA7YYLxof/U2bnZal+nDnsb4lJK8PgnZVjMVGAyV1H3F0niFRD1GhDJbV+54jk5MO8g6CP8AiTp+S+zki/ggmX1cINx63yYXHMdJa9ZNucTDMi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709012149; c=relaxed/simple; bh=4DdQpD7qe+yF9pbBdc/REKtzDvw2NiDp7vBjTxEljjw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SWstNPpBYVQWr0ILKh5kcw+1mNpoWUNGybcBvlRQkSAdvwc+pOm72fV7E50JEwAio7WL3Q5a0dgu4hRT1Uv/6j6p+NOp2OzxmFX9kt0SNHVp+8My5CQy5WT2TI6LfW2M/pe6jkvBXucfNsOMWoZJU5MCmohkRgHMDOJsckcPs6Y= 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 1req7x-0001wq-Az; Tue, 27 Feb 2024 06:35:41 +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 1req7u-0038HM-3k; Tue, 27 Feb 2024 06:35:38 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1req7u-00AVXW-03; Tue, 27 Feb 2024 06:35:38 +0100 Date: Tue, 27 Feb 2024 06:35:38 +0100 From: Oleksij Rempel To: Andrew Lunn Cc: "Russell King (Oracle)" , Florian Fainelli , netdev@vger.kernel.org, Clark Wang , linux-kernel@vger.kernel.org, Eric Dumazet , Shenwei Wang , Wei Fang , NXP Linux Team , kernel@pengutronix.de, Jakub Kicinski , Paolo Abeni , "David S. Miller" , Heiner Kallweit 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-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=utf-8 Content-Disposition: inline In-Reply-To: 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 Mon, Feb 26, 2024 at 07:59:28PM +0100, Andrew Lunn wrote: > On Mon, Feb 26, 2024 at 05:53:31PM +0000, Russell King (Oracle) wrote: > > 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. > > So i think we all agree the MAC needs to see a down/up, even if the > link itself never went down. Anything else is too risky and will > probably break something somewhere. Means, this patch should be dropped. Are there other changes required? 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 |