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 54FE6C433EF for ; Tue, 23 Nov 2021 19:50:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240058AbhKWTxq (ORCPT ); Tue, 23 Nov 2021 14:53:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232735AbhKWTxp (ORCPT ); Tue, 23 Nov 2021 14:53:45 -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 91AD1C061574 for ; Tue, 23 Nov 2021 11:50:36 -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=JqPQT+5l4PKOmnzgMmJcdponKw5AJ1lusJwfSB+JKtc=; b=I1bAbDItaiXpFxQ3LNSctXv/hd hEj16n9n5ke8/jcmeowt/V6FIcyeQtBWHs/VBbai21S2YagXJxPXNyE8G4Pw4XdqNAaEYoxUJ8Mgj VKRWp1zwhF4HDIQKkqaQx3oGPhzvynHhI5v0sBnJD8MO35BLZXeVyZ1MrVn3UXrqRe9mDvDYDA2U1 xlAVJ0QaE449Z+bVT8nAdZxJSYODYSHi6nMOWzzygi67PH8W8VIzQ79drEiDSQcBkrWmEaV4JlkOm gYyNHkn9Y12R7rTJEQAtJxeXglN//mWe/SAqCBoO6Ui54t9bph0/ZKX6wk9TqyHHHHhP3VGBufPxk fge9XwBA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55826) 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 1mpbo4-0008Kl-Iw; Tue, 23 Nov 2021 19:50:20 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mpbo1-0000V4-4Y; Tue, 23 Nov 2021 19:50:17 +0000 Date: Tue, 23 Nov 2021 19:50:17 +0000 From: "Russell King (Oracle)" To: Vladimir Oltean Cc: Sean Anderson , Chris Snook , Felix Fietkau , Florian Fainelli , John Crispin , Mark Lee , Matthias Brugger , Michal Simek , Radhey Shyam Pandey , Sean Wang , Vivien Didelot , Andrew Lunn , "David S. Miller" , Heiner Kallweit , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org Subject: Re: [PATCH RFC net-next 8/8] net: phylink: allow PCS to be removed Message-ID: References: <20211123120825.jvuh7444wdxzugbo@skbuf> <90262b1c-fee2-f906-69df-1171ff241077@seco.com> <20211123181515.qqo7e4xbuu2ntwgt@skbuf> <472ce8f0-a592-ce5b-0005-7d765b2d0e93@seco.com> <20211123193017.rtvxyvb3oheqoxlz@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211123193017.rtvxyvb3oheqoxlz@skbuf> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Nov 23, 2021 at 09:30:17PM +0200, Vladimir Oltean wrote: > Sorry if you feel like I am asking too many questions. I just want to > understand what I'm being asked to review here :) > > So going back to the initial question. What use case do these patches > help to make some progress with? If we exclude patch 8, this series: 1) identifies all those drivers that are reliant on the legacy behaviour of phylink, which can then be targetted for modernisation - some of which may be trivial to do. ag71xx and axienet have turned out to be two drivers that can be trivially converted. 2) hopefully stops the legacy use finding its way into new drivers by making it easier to spot in review, but hopefully people will realise that setting the legacy flag in their driver to use the old hooks is something they probably want to avoid. 3) gives consistent phylink behaviour to modern drivers which may or may not decide to register a PCS with phylink. (3) is probably the most important point for any driver that registers a PCS conditionally. Right now, any driver that does this gets a slightly different behaviour from phylink as detailed in patch 7. I would like to remove the legacy code and old .mac_pcs_get_state and .mac_an_restart callbacks some day... -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!