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 3C1F9C6379F for ; Fri, 17 Feb 2023 14:18:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230055AbjBQOSO (ORCPT ); Fri, 17 Feb 2023 09:18:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbjBQOSL (ORCPT ); Fri, 17 Feb 2023 09:18:11 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74489227AC for ; Fri, 17 Feb 2023 06:17:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=aLJjd7E1tXLn9b9MK2QQfaPoO51k0N0PuY0bc0ibOso=; b=jiuyPHv3n7RZ7exjbiy8MV9I4N 8w2xyUXsqR9KX4bQo/f+Ml26cpRU9ReyMs1/ajqWHKEqeIPprbUTnXNs7aCXgzU4ZI06Ft1VhVv9A H9v5VksMkW+n/CohlQq2jIIUSBVxvSgkByCQSkb6NOfOrtLZFnm5hzAJPiMgledp61lY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pT1YZ-005I8f-W7; Fri, 17 Feb 2023 15:17:47 +0100 Date: Fri, 17 Feb 2023 15:17:47 +0100 From: Andrew Lunn To: "Russell King (Oracle)" 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 00/18] Rework MAC drivers EEE support Message-ID: References: <20230217034230.1249661-1-andrew@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > This is a very nice cleanup, and removes a bunch of logic from MAC > drivers into the phylib core code that should result in more > uniform behaviour across MAC drivers for this feature. Great! > > I'm left wondering about the phylink using drivers, whether we could > go a little further, because there's also the tx_lpi_enabled flag > which should also gate whether EEE is enabled at the MAC tx_lpi_enabled is something which i think needs further cleanup. Most MAC drivers ignore it. I added support to a couple of drivers, when it was simple to do. But not all. I'm actually thinking of moving it into phylib. The MAC driver really does not need to care. All it needs is eee_active in the adjust_link callback. I'm currently undecided if to make such a change as part of this patchset, or do it as a follow up. Andrew