Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5254725rwb; Tue, 17 Jan 2023 11:05:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXsEIsvbhQrt3ISOttG9eQYUMWzjyaJfH2a+ZXI/kmO3onrSx8Y55I7SMA5s6+IiY+tHThe+ X-Received: by 2002:aa7:d887:0:b0:499:1ed2:6461 with SMTP id u7-20020aa7d887000000b004991ed26461mr4297863edq.17.1673982341767; Tue, 17 Jan 2023 11:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673982341; cv=none; d=google.com; s=arc-20160816; b=xWBFqIWfIQo7Ib3SEqJfW99jeq0M+t/dp70QwWpwgXAZ3o6MNvZheKEMKwrGFwqq0j 4BMOIsc+oB7hxzkUZByu0Oh5uKnQUmkZBpZEeYxNxD/Ss9Sy7c0+wVCv7oUqM0VVR+Sq xEQzDCX5FHhxc8KYW79qSK1iNFmd8mlbtYUsWjy7EZpf4FK46srMjd9cUBeVlj16w1Pp fL3dSuiyvlgTu8Cq6RsgtQGpzz1SLmlBlILHXzt7QvuzWfZKg2FATIwEy7TIMCnNa5AN ZJguyUthJJ/2wf+X8whsr487Lj0NS0xss8x1FhEL9286gJ1PKkMeX7jtr3G6eU0XKPDG 1T8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oTQ51UdTzrcO70uhBDlVnjUBjeBv3ulnXFGtTiGIm0k=; b=yfIf0x86dvjGmr1OkdvvUk3M8PM7iI8egT5BcL+/wD2XJZUr79YzgqxP7beXImfr8V I/ztL75jsvvdncIFEKPZWv/7joIB2D/5BFo3KPjujOcf9J+dGBTaDD1pUPNESQcSY4yc jFVhqbUvWt1RlvqWTeTyHEPNPiXw5w0MPVqYFwz8JQJz3vhBdjnfMy11bgwE/SYDoxEu 9LqFMUdWaeWdNjxpufL1yS/gamQc94XJy6SxN/rrQmPjd7jvPUvo5Ks57QvYmqIkUYPF W+GF9OWMkJ41+EFdupZqZHxTr6mV8QhUCOmaTl5m0EbgMW2DqVYETtXKlyfwJcd/wIpQ nVFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="T+nS/B++"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a056402268800b0049e34ecef4asi3442518edd.5.2023.01.17.11.05.29; Tue, 17 Jan 2023 11:05:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="T+nS/B++"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230222AbjAQS3o (ORCPT + 47 others); Tue, 17 Jan 2023 13:29:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjAQS1z (ORCPT ); Tue, 17 Jan 2023 13:27:55 -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 2C60F45BF7; Tue, 17 Jan 2023 09:59:00 -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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To: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=oTQ51UdTzrcO70uhBDlVnjUBjeBv3ulnXFGtTiGIm0k=; b=T+nS/B++wLjSplKMC1zkLdoVCy zlTMepyVcgrVjUvgmzLOniKFcoIDT9QmRogGeAob6c9cOy+2VluTCn5AHsufqp/nOtq2HxM/GPPgz Bb6Kq/kqlh18qtJPCV+JJc4PwahXaSZz9s8mBG17OtrgQrXDVHZ1xwLrMsOO0gnnuU+bbiFpvcnYT oVCqkjPSNIHC5P8LiyjStPbDusChy3qM8i1IZbq5OozthAVMuyUCIZ0Og6vkfxo9+dtqZwJxGz9fp k5D6QGoFM6N5dZj4hT6pO4zylc5wCLgtY0/gk67ciyQevkbPmEr7Sg1z2GhwUuFL68nQcmWzwMFMw JMDpA5Cg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36164) 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 1pHqEN-0008Cm-SG; Tue, 17 Jan 2023 17:58:43 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pHqEH-0007Ag-CE; Tue, 17 Jan 2023 17:58:37 +0000 Date: Tue, 17 Jan 2023 17:58:37 +0000 From: "Russell King (Oracle)" To: Marcin Wojtas Cc: Landen.Chao@mediatek.com, Samer.El-Haj-Mahmoud@arm.com, andrew@lunn.ch, andriy.shevchenko@linux.intel.com, davem@davemloft.net, edumazet@google.com, f.fainelli@gmail.com, hkallweit1@gmail.com, jaz@semihalf.com, kuba@kernel.org, linus.walleij@linaro.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, olteanv@gmail.com, pabeni@redhat.com, rafael@kernel.org, sean.wang@mediatek.com, tn@semihalf.com, vivien.didelot@gmail.com Subject: Re: [net-next: PATCH v4 2/8] net: mdio: switch fixed-link PHYs API to fwnode_ Message-ID: References: <20230116173420.1278704-1-mw@semihalf.com> <20230116173420.1278704-3-mw@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcin, On Tue, Jan 17, 2023 at 05:20:01PM +0100, Marcin Wojtas wrote: > Hi Russell, > > > pon., 16 sty 2023 o 18:50 Russell King (Oracle) > napisaƂ(a): > > > > On Mon, Jan 16, 2023 at 06:34:14PM +0100, Marcin Wojtas wrote: > > > fixed-link PHYs API is used by DSA and a number of drivers > > > and was depending on of_. Switch to fwnode_ so to make it > > > hardware description agnostic and allow to be used in ACPI > > > world as well. > > > > Would it be better to let the fixed-link PHY die, and have everyone use > > the more flexible fixed link implementation in phylink? > > > , > This patchset did not intend to introduce any functional change, simply > switch to a more generic HW description abstraction. Killing > of/fwnode_phy_(de)register_fixed_link entirely seems to be a challenge, as > there are a lot of users beyond the DSA. Otoh I see a value in having > of_/fwnode_phy_is_fixed_link check, afaik there is no equivalent in > phylink... Phylink provides a much improved implementation of fixed-link that is way more flexible than the phylib approach - it can implement speeds in excess of 1G. DSA already supports phylink with modern updated drivers that do not use the "adjust_link" implementation. What I'm proposing is that we don't bring the baggage of the phylib based fixed link forwards into fwnode, and leave this to be DT-only. I think this is what Andrew and Vladimir have also said. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!