Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5267676rwb; Tue, 17 Jan 2023 11:15:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXuAbVEMzZEHDLYHHhEhWFXURxFkJ4fe6AjZ7+/NvbdfSyPHo+PN0r/NadbN6Lfbpc2RjtY4 X-Received: by 2002:a17:907:1c08:b0:86f:de0b:b066 with SMTP id nc8-20020a1709071c0800b0086fde0bb066mr96872ejc.76.1673982945466; Tue, 17 Jan 2023 11:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673982945; cv=none; d=google.com; s=arc-20160816; b=fuJj3HmbEjnh3/YwalqQCiLJJDap5oiGQ7ybDU8wzebUn9ZuRdOmpZm8fJ6EtqwFgq 5hAz90vvqLI3X/NfLJqBXSPTGLxhWWxq2eCmw6Lx7PJbCHbgradCpsCBeFeH4YmPIAEi GzRREBWr3csL3Ns/UyTs9+lEiCGd+CUZOubRCkRGt0L/2Ff176DhadZXdf13YPL6DKK3 uuU7T1RlUsLL/46sxlYtxaMjlGn9ZZ/LcrGtnMuJsKfI5Rfj6sy+63GxzERaB79k7ERV 7ri1nGZSMf32K2R6TmmergdHBqieg5Q7ZJplSnXLkwV17Gm4ZJyh8W72SkiiO6h0NuiG vFNw== 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=1bc4HH8wLLn6R3Oilqb4e8+1SbIPrlAa0QQfg12ZrZs=; b=BsV2faHAdvUUZf4WOj/SzJIPJs2U3RB6fCm1dzkBO4YMYlye9J56oq8mV7arxosvUM OVHkzVQRtlPYrO8nhSER3znSRzzNqXhyBugkaSJGt2K39w6mVPc9Jn1pWKU2vcSpNFM9 6VOPMED/xghww0j35MiY7D3o+q0L5xdbL/hbMr0y/81IVxY6nkYpJc6wlzsdeFgjwaFq j+etq7yZoy54xkjEj8I/6ooYCB9p2fCr+/RuThe15J1x2Ri9IILIlwDyMlgeREXa1Go4 qVoeXaHAhTV2vCmWTPxqT+cy01DDnHwmraQO4nJqxbEOxpALyoMcWw0mV83Rh0JKjbFk iuYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=pbx0Tgwf; 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 x12-20020a056402414c00b00486120b4969si36530890eda.394.2023.01.17.11.15.31; Tue, 17 Jan 2023 11:15:45 -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=pbx0Tgwf; 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 S232658AbjAQSc1 (ORCPT + 47 others); Tue, 17 Jan 2023 13:32:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbjAQSai (ORCPT ); Tue, 17 Jan 2023 13:30:38 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 659313A586 for ; Tue, 17 Jan 2023 10:01:28 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id r205so26575453oib.9 for ; Tue, 17 Jan 2023 10:01:28 -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=1bc4HH8wLLn6R3Oilqb4e8+1SbIPrlAa0QQfg12ZrZs=; b=pbx0Tgwf4mH7q9k59cNhZH4hjrD52u7p7F6cKIcinUWF2lxDNeOdlmMHIlBDGtEaaR GjLj/WaJs3f29Y6ZwQVIqpeEYxgx/dAWsTRBG3h43We4D7nCwLXSEuNYdHWebAjyMJci 60Whwq3+BGdC4O3FriBPhisSVQDmK1jwhJS80jut56sKYIhzNmtsRFDCawFmKJf+XgfB +t/FeqFXMG+6c+tzvkVcJbtEIg4U2/eB6dCqQ+NXmB4qYzshsxawPoqWqdCWfKtvZgdC Yy460lMVcnGAw/H56ZXxaVlrO/f11wXoeYPXzj8hLV/+7JR4eYFeZHvDP1fAZEsl3kXV Nmbw== 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=1bc4HH8wLLn6R3Oilqb4e8+1SbIPrlAa0QQfg12ZrZs=; b=CRTxDX8D7xE7+qWTrWPKLJnWwSzidkOhQJNhO00vgIAIEsqoQLK98Bm8GkOngnB4oz +8oOskAVCaHnh4nx02GekWyH6J3yF81m1x1eVmRnUNaGLexPT6Uvybfcx/C02uipljP4 /qrq60yE6gyMV8vO9KA/0rqbmjCcvRSyvARl7JZa9Mz23z7vvJVwVvZNNjRaOqxAUIdz ePZ86+wcdbQuldQ8GayzVFK5Xcmi1TTjzJ0uyRwAMJp86mPlGv5lejEoENceSmi5S9ai HsVJVypyKfHdundPyr2dqDrBAE0eVQHXjZMu85+5AgEpTTdSTJSDLV9fcwg39XQmmpMg T0rg== X-Gm-Message-State: AFqh2kqMSGBE+hWUHmcGuL1Lb+ZkyvDS9GvNJ8qvXmMRfUb7sef1XNiL 8OoeeegMnMZxdYdhYf2v9TwjAvigB7dq07Hda2xi4Q== X-Received: by 2002:a05:6808:124f:b0:35e:18a6:10ea with SMTP id o15-20020a056808124f00b0035e18a610eamr265907oiv.239.1673978487199; Tue, 17 Jan 2023 10:01:27 -0800 (PST) MIME-Version: 1.0 References: <20230116173420.1278704-1-mw@semihalf.com> <20230116173420.1278704-3-mw@semihalf.com> <20230116181618.2iz54jywj7rqzygu@skbuf> <20230117163453.o7pv7cdvgeobne4b@skbuf> In-Reply-To: <20230117163453.o7pv7cdvgeobne4b@skbuf> From: Marcin Wojtas Date: Tue, 17 Jan 2023 19:01:20 +0100 Message-ID: Subject: Re: [net-next: PATCH v4 2/8] net: mdio: switch fixed-link PHYs API to fwnode_ To: Vladimir Oltean Cc: Andrew Lunn , "Russell King (Oracle)" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, rafael@kernel.org, andriy.shevchenko@linux.intel.com, sean.wang@mediatek.com, Landen.Chao@mediatek.com, linus.walleij@linaro.org, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, hkallweit1@gmail.com, jaz@semihalf.com, tn@semihalf.com, Samer.El-Haj-Mahmoud@arm.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 Hi, wt., 17 sty 2023 o 17:34 Vladimir Oltean napisa=C5=82(a= ): > > On Tue, Jan 17, 2023 at 05:05:53PM +0100, Marcin Wojtas wrote: > > In the past couple of years, a number of subsystems have migrated to a > > more generic HW description abstraction (e.g. a big chunk of network, > > pinctrl, gpio). ACPI aside, with this patchset one can even try to > > describe the switch topology with the swnode (I haven't tried that > > though). I fully agree that there should be no 0-day baggage in the > > DSA ACPI binding (FYI the more fwnode- version of the > > dsa_shared_port_validate_of() cought one issue in the WIP ACPI > > description in my setup). On the other hand, I find fwnode_/device_ > > APIs really helpful for most of the cases - ACPI/OF/swnode differences > > can be hidden to a generic layer and the need of maintaining separate > > code paths related to the hardware description on the driver/subsystem > > level is minimized. An example could be found in v1 of this series, > > the last 4 patches in [1] show that it can be done in a simple / > > seamless way, especially given the ACPI (fwnode) PHY description in > > phylink is already settled and widely used. I am aware at the end of > > the day, after final review all this can be more complex. > > > > I expect that the actual DSA ACPI support acceptance will require a > > lot of discussions and decisions, on whether certain solutions are > > worth migrating from OF world or require spec modification. For now my > > goal was to migrate to a more generic HW description API, and so to > > allow possible follow-up ACPI-related modifications, and additions to > > be extracted and better tracked. > > I have a simple question. > > If you expect that the DSA ACPI bindings will require a lot of > discussions, then how do you know that what you convert to fwnode now > will be needed later, and why do you insist to mechanically convert > everything to fwnode without having that discussion first? > Ok, let me clarify. From the technical standpoint, I think it is fairly easy and to a very big extent, we should be able to reuse, what is already existing - I made it work with a really minimal set of changes, using a standard nodes' hierarchy and generic methods in the ACPI tables. As more difficult, I consider getting this solution accepted by the ACPI and the network subsystem maintainers, also given the OF quirks/legacy stuff, that apparently needs to be ruled out in such circumstances. However, I perceive a preparation step, with migrating to the more generic HW description API in the generic net/dsa, as a sort of improvement, but I get your point and I will wait with resubmitting these changes again. > You see the lack of a need to maintain separate code paths between OF > and ACPI as useful. Yet the DSA maintainers don't, and in some cases > this is specifically what they want to avoid. So a mechanical conversion > will end up making absolutely no progress. Fair enough. I'll keep it on hold until MDIOSerialBus gets accepted and repost a bigger, combined patchset with all changes like in the v1. Best regards, Marcin