Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp944842lqe; Sun, 7 Apr 2024 10:53:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhxv7O+gWOQWoeS78yiF+64v44JzPRP7N6s7xerBRCdqdAGrvMvBPFgeFSP1+tKxg5PWEYHS3qqHhhKg77plQeghR6+yUPoXaigCZZBg== X-Google-Smtp-Source: AGHT+IFKsKyhnvjKP3i5Gpp7V6ceBfrEuIbCWB4XZwAR0y28k0E7cFptQRRgb/XWqhMlLeZ7ppIP X-Received: by 2002:ac8:5951:0:b0:434:6721:440d with SMTP id 17-20020ac85951000000b004346721440dmr7361902qtz.22.1712512407860; Sun, 07 Apr 2024 10:53:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712512407; cv=pass; d=google.com; s=arc-20160816; b=CcZj5RhbDW3zwNPxN5niWofx0Md3UKydudG41ZvOLYM+okmqD7FsEUNgUXG5SfLgmp 52/esAYzgANWxEQUns8qHA5C0a6j1M9bG2++VLtYtROArpqldHze3ERXPtXt2SB9Hwne SgfAkJWxpCfR8kMO4zLg7ivIIHcfSzhvRWp7fmiOV0SKFESlgZN7QsS3aR3n+7n/qQon 1YgcZIIToHQj0dFobQCcMakWpk1+s0Wc60Gc34Oqkwr29ulDZctouqBzqQYRbtq8r0VG nevt6hdEN/vIK63Nw7CTBoZgIq27CpgDucBsgsO8Vehpon4f7ysW1VbT4tbYt3Mggt71 2qdg== 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=NKDnTm3O/RRhNtW0NH3ahRIxX8+6MZS7fn1Nt5IQPfA=; fh=Hy6IN72px04NcGevpopCNnKaBwK05qOt+WPTuq8HaPY=; b=KtlMtEynk/CQ6YVsq0oXG51PkGDtzKkPsQNr7SwlcADaVaq5nS1+Y9pdkCMGO6bBYk MpQnt+RA441goP41VH2BHGXVVEwJihi/al+Zw9ro61lg2kdbm+c4UpKVgK53mzwSCPKX AGqFOx7+ur8dD95WPpxIo2ZTedp2t9L+iZdfvG4bG9elLUNFeAgkDa7GQUvTEBd/wVN/ wXqaJTaHjeXaVlSQdbK2IMVhyikXdxy5BI90cgRoPsk8Otwuch5iuT4byaGsGzCSBISa jsnCY4DNud1HmuBJt5wwQ/Om1MurgiBirEc5IMGFpux5KP6W6psAhX4grhuU5Jp5q4Io ycOw==; 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-134602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134602-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 t21-20020a05622a149500b00430e1d0d2a3si6590224qtx.334.2024.04.07.10.53.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 10:53:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134602-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-134602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134602-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 951151C20A06 for ; Sun, 7 Apr 2024 17:53:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06D573C08E; Sun, 7 Apr 2024 17:53:16 +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 5A7043BBE0 for ; Sun, 7 Apr 2024 17:53:13 +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=1712512395; cv=none; b=lJljLkDPOF61r+SQLl3MGnmg5pObP/7jPSSJJ03wx9O4DqzYRdrLJ5UUXOP7vxCCqgkJMTpwrAZIa1eXMqw6/SoUfh4QN7lZduxH/Yp1W6OwHRwjkoCIrEW7t9eZY/b1nbkPFxM0jj3FjsLXvrkKRcKZUheQ9Vcm7Rq8r/IiZHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712512395; c=relaxed/simple; bh=m7xjJrsZsamBvH244i4AhQh7nkrbLwZAUnx45zvG9jw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UJXA1EFWn9ogzeW3tm2CFjpH++fFBxihp6qL9zC1tWIjkrkJ2Hx2FlxxIJhGtO8yHWl/Eaoze3/NBxtn8aXfs5BKGy+2DBjcCMn2Nat/SHGPNj6OrRASGCuXLCx968wfVlWroRpmY+UUqEWb49y/QGEK92+zmdn8dzMQMuOg9xE= 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 1rtWhS-0006UL-6v; Sun, 07 Apr 2024 19:53:02 +0200 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 1rtWhR-00AxlK-Q8; Sun, 07 Apr 2024 19:53:01 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rtWhR-001Gre-2I; Sun, 07 Apr 2024 19:53:01 +0200 Date: Sun, 7 Apr 2024 19:53:01 +0200 From: Oleksij Rempel To: Andrew Lunn Cc: Woojung Huh , UNGLinuxDriver@microchip.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Bryan Whitehead , Heiner Kallweit , "Russell King (Oracle)" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/2] net: lan743x: Fixup EEE Message-ID: References: <20240406-lan78xx-eee-v1-0-2993b14b849c@lunn.ch> <20240406-lan78xx-eee-v1-2-2993b14b849c@lunn.ch> 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: <20240406-lan78xx-eee-v1-2-2993b14b849c@lunn.ch> 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 Sat, Apr 06, 2024 at 03:16:00PM -0500, Andrew Lunn wrote: > The enabling/disabling of EEE in the MAC should happen as a result of > auto negotiation. So move the enable/disable into > lan743x_phy_link_status_change() which gets called by phylib when > there is a change in link status. > > lan743x_ethtool_set_eee() now just programs the hardware with the LTI > timer value, and passed everything else to phylib, so it can correctly > setup the PHY. > > lan743x_ethtool_get_eee() relies on phylib doing most of the work, the > MAC driver just adds the LTI timer value. > > Signed-off-by: Andrew Lunn Probably same as lan78xx - if something is wrong, it was before this patch. Reviewed-by: Oleksij Rempel -- 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 |