Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5360564rwb; Tue, 17 Jan 2023 12:39:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXtE7EDNVK9XGX9/4BKoSczENxa3KMN3PBtBzGODTjnv2GQftbf8ZWRpvDmQ6vhPLZIRpRWa X-Received: by 2002:a17:906:d8a8:b0:84b:b481:6188 with SMTP id qc8-20020a170906d8a800b0084bb4816188mr360372ejb.64.1673987958485; Tue, 17 Jan 2023 12:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673987958; cv=none; d=google.com; s=arc-20160816; b=DVWTb1uLDS0JLB1kafpSRjtXsMF3P91fPAgbbp4h3Lf7OylfykrKHu9hPKDLe0bLxL Da/n0oMnuhW5Y4tVY5kGaKGTTi5aZBHvtvJACK6M5o7bd4JhNbvmuQhMyIj3+5MzMn+W R1rIbMJ5pGkZtbs/QzrvN4+KWUfOs8m6kSystJFFWXClHJcxPBD6DXU0Xr+/3cQ0xv1q UhcWbNkgLGJ82f+pOFffdwp/+Q57Y/3S1Eb1y8Sc6Uu71rA+sBEjReCqFTbrdZDwr/zZ vtFYO+NAKOmSpVJ7SLH0aqHgA3lye9pCQS1nXp8/V3TI7tO72jDZt4fFqm5lXmZWL9Y/ dgxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NukCC4d4QJEDgfsOL/cdaVgghldPnWrPw2w2tKfD+uY=; b=mmuiL7GB7FvCYl1pi7kDwg/WhscZG13HYfY16JMMfyrylENBw+p8kUWzqc1kHTt43s 3lDaurF3Q1XfYYT8rO2g/pE+Aiuw1Fdlb5Pj3LUoh5z8ySNjw+3RciCWNPw5Uvq6Rr7+ Bi2HYJwx9nlKV92JvF4ECI4pFxfvFb/aAPU9iVjYczlB0EtXb+k74Bf75PpUWapnx5/g W9qhCm2g1pq+ZjE8F45r/QEYUYN8DPl5q78Yk2V0vlIEtfUBi9EL91lqQaHXIsjYEBKP VofOZRKIZ5VBqfjH33eu96U591AcrRR+BZbjzeqkiklJtOCfX1SvOVMLKQCCQTvWgyiO 8XPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=VvnN3QFG; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf9-20020a1709077f0900b0084a52896279si34313967ejc.950.2023.01.17.12.39.06; Tue, 17 Jan 2023 12:39:18 -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=pass header.i=@semihalf.com header.s=google header.b=VvnN3QFG; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231313AbjAQSdZ (ORCPT + 47 others); Tue, 17 Jan 2023 13:33:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232474AbjAQSay (ORCPT ); Tue, 17 Jan 2023 13:30:54 -0500 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33A0143917 for ; Tue, 17 Jan 2023 10:02:38 -0800 (PST) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-15eec491b40so11869612fac.12 for ; Tue, 17 Jan 2023 10:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NukCC4d4QJEDgfsOL/cdaVgghldPnWrPw2w2tKfD+uY=; b=VvnN3QFGrGjHMdoaWWpco2m+snxvy3UVxV1K+wJ6B9ExTsOzvvuLTtkLbMgnyNr4LP pMR0jGgbHwlQLSDz/4rzD90n0aRAxxo570PND+oKrlA4Y3bc0fFrJqsILnm6Qpul5dWe XEHudFeDMQ+XQZJegue7T1zHD0nTQDZHFLhcy+be7NV/O7+C470lRO49e1xMgilFQGED eiALN95KegtB8G8EQvSEYic1OozQeKs8rbEbB16kW5aIRRvopBZOw6AXhYbDsj82WwYu A7zRWsTD0eg5uq2f4Ozcoqg/ZmMajDhvewrD/OfVFpEInN4ggWxOMyUKYa1RmcC7uRXq YKpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NukCC4d4QJEDgfsOL/cdaVgghldPnWrPw2w2tKfD+uY=; b=2eAnDnT6S9j2EpUQn2LNQTyElWX4E38j2CZL0b3mJK5Rlsh9zXUQyBFxWS/s4NzESd k7wFtaTRm1M74LEauScW4Jam4h03j81Y5U/fuLQ44oqTGa2jQ3qIBUZywU95sfXxNiKZ /RNLpxDKGxLJpaPSwLI4wybc6RzJoUTqORxb0G96puJ+48YHiAOl4+Hsua119t6FAy0N KIEQw5e2q5naujJw8b5I3+kUf33JPzpeqXWqK05/lgxAPeCyD0mBXnKJ/YAVpox376jo bzsXtF71v+sn+h0DkdmqHZTL0ukczAfHuy2I2O9rVtu7JfEu+K0C5mxjaO1afooZXZ1+ E16Q== X-Gm-Message-State: AFqh2kqnD9aNBpmzvLRBhIqIg8h93vp/KihBf5abIoyKjv+A1cmj6GBo N70/na6Z8UInYvHKvANGMX7ckhKhuInkP2rMQpOvWg== X-Received: by 2002:a05:6870:4b4c:b0:15f:17fd:1531 with SMTP id ls12-20020a0568704b4c00b0015f17fd1531mr325174oab.115.1673978557152; Tue, 17 Jan 2023 10:02:37 -0800 (PST) MIME-Version: 1.0 References: <20230116173420.1278704-1-mw@semihalf.com> <20230116173420.1278704-3-mw@semihalf.com> In-Reply-To: From: Marcin Wojtas Date: Tue, 17 Jan 2023 19:02:29 +0100 Message-ID: Subject: Re: [net-next: PATCH v4 2/8] net: mdio: switch fixed-link PHYs API to fwnode_ To: "Russell King (Oracle)" 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 wt., 17 sty 2023 o 18:58 Russell King (Oracle) napisa=C5=82(a): > > 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=C5=82(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 u= se > > > 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. > Ok, thanks for clarifying. Best regards, Marcin