From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3791CC636D4 for ; Fri, 17 Feb 2023 11:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbjBQLf6 (ORCPT ); Fri, 17 Feb 2023 06:35:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229924AbjBQLf5 (ORCPT ); Fri, 17 Feb 2023 06:35:57 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 514AD656AC for ; Fri, 17 Feb 2023 03:35:53 -0800 (PST) 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=KMYAtMSV6OpBRw1xidfOaO/29xg0g5b8yRi7Op2wgao=; b=k06Bq1hQY4RiPCcvLheNhasoVC OKbkAp3COkcx15xR7mLi0SEYYfYGSEKxxb1SPxA24dyM71945/ZF10jXe5DBTKQp5XlmSSBdm/LFl LldcceQxvfO23eIdbNIlInVILcWLgaBrXdALrgkRfM3RHr+2UVqRqJRuNIpOBOPHkslsrfGoXtg+t RAoFAUZd50HV8aHzTMQVl3FT4sJxeJWELBnnFS6laGwCKRczG7XtbvEmvsxK8eB5LKzfWxRiiyOHR J9D+YrJy2SDKeC0k0cUNBTyJF0jfZNXP5m5NyyCthDCmhtsvcK5S8CYKUSTv2s4PKOAYs66qSom8X d7BRYJdA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42888) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pSz1k-0000py-UD; Fri, 17 Feb 2023 11:35:44 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pSz1c-0006kP-UB; Fri, 17 Feb 2023 11:35:36 +0000 Date: Fri, 17 Feb 2023 11:35:36 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: netdev , Florian Fainelli , Vladimir Oltean , Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , AngeloGioacchino Del Regno , Doug Berger , Broadcom internal kernel review list , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , UNGLinuxDriver@microchip.com, Byungho An , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Heiner Kallweit , Woojung Huh , Oleksij Rempel Subject: Re: [PATCH RFC 03/18] net: marvell: mvneta: Simplify EEE configuration Message-ID: References: <20230217034230.1249661-1-andrew@lunn.ch> <20230217034230.1249661-4-andrew@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230217034230.1249661-4-andrew@lunn.ch> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Feb 17, 2023 at 04:42:15AM +0100, Andrew Lunn wrote: > phylib already does most of the work. It will track eee_enabled and > eee_active and correctly set them in the ethtool_get_eee callback. > > Replace the call to phy_init_eee() by looking at the > phydev->eee_active member. > > Signed-off-by: Andrew Lunn This is a very nice cleanup, and finally gets rid of that phy_init_eee() in all those mac_link_up() implementations. Yay! Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!