Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3864816rwb; Mon, 16 Jan 2023 14:18:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvL+VAhsaQfiFto3GzQmlxHHt9R8raRIXTgcC+2ES5PXvLL9niYXY0Pw0fnxrRt4/+1flCC X-Received: by 2002:a05:6a20:6ca9:b0:b6:a9ad:a07f with SMTP id em41-20020a056a206ca900b000b6a9ada07fmr71165pzb.27.1673907512038; Mon, 16 Jan 2023 14:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673907512; cv=none; d=google.com; s=arc-20160816; b=DphBpU3Lh/g5BuJ/TpH/Bt5huZLqvgBekyhahs0NNHQL41iLdRwAr/iShXc+vYso0d nG7sSLDPUC4qeTE3+jKk2QBAIc906oSR6MMJQUoiUM1dvU3uTHS9Y+KzcjSQ3d8j2b83 hM4pWcZ2tIHgJcK6sl/uJ7ronamx+mr2x2w+s8S0bL+6vShfb142IcMOo/rANihplxFs giKM53oJY1eV2d2pDAn9N/UHXj10YWnTICRvtYQa3jsbSY2f+lhF1oCIJe7aaINw28qb IMluYxOM1f0SjoUEOGHNHcFIFxq+GyqSTNXc8APnOzx/xrhJrXRFytY86gPJYzM1LAom ElOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uazCoJXtzlq2kShlcT9rXD6tOctqES9trOINp4voJPQ=; b=f+7JWh3HcoGRlyvkKBABcA4nH/Hk5oq1VtEtTIooYaALD1CVvgGepVvJxFgiNPu7R5 8qxACpkz2QoRPq+vNYNs+CAIrX0FkM0E0ikhsfaRUsIjnlF7dsp+4kL7RansBoW06KSF +fpXqh/qYkIWhI0jY1LBuaa8vg98WXBAzwrJ6gdtE0e4Ubutvckn+m/0MHfBEw37JAYI cL3VcP/n5z8Gm03fAqB50Xw9dx3Nbj3JIdUWs6UEd9ySGFsOil1xRBVjQgKx/PWG0lUZ OfYsD+gIutpV/Be590pL2y0qKMz86HNg8TOkxD/bWI/jROjcrnXq+nghF9WhK5GM3/vu 4Gsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HbsVr2uw; 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=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a63224a000000b00478f9831638si28883144pgm.286.2023.01.16.14.18.25; Mon, 16 Jan 2023 14:18:32 -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=@lunn.ch header.s=20171124 header.b=HbsVr2uw; 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=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232782AbjAPWE2 (ORCPT + 52 others); Mon, 16 Jan 2023 17:04:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234256AbjAPWEZ (ORCPT ); Mon, 16 Jan 2023 17:04:25 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E9625E03; Mon, 16 Jan 2023 14:04:23 -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=uazCoJXtzlq2kShlcT9rXD6tOctqES9trOINp4voJPQ=; b=HbsVr2uw3QcN5Haiwf2oauolr4 Q1wpFz/1qvpARLsRMeTnrxxLPykIcbZ9qPZEfg3GdTES4pGeXkHiQulW8KdoyjNHopQX/zxIPm3CA jL/pFa/9SFYlHwHsV0jYy94nWtzULKX3+n/jvE9iKcTiehNTI/vG6oVUPJmzCOOgbXP4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pHXaP-002GdJ-Uh; Mon, 16 Jan 2023 23:04:13 +0100 Date: Mon, 16 Jan 2023 23:04:13 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: "Russell King (Oracle)" , Marcin Wojtas , 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 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> <20230116181618.2iz54jywj7rqzygu@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230116181618.2iz54jywj7rqzygu@skbuf> 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_PASS,SPF_PASS 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 On Mon, Jan 16, 2023 at 08:16:18PM +0200, Vladimir Oltean wrote: > On Mon, Jan 16, 2023 at 05:50:13PM +0000, Russell King (Oracle) wrote: > > 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? > > Would it be even better if DSA had some driver-level prerequisites to > impose for ACPI support - like phylink support rather than adjust_link - > and we would simply branch off to a dsa_shared_port_link_register_acpi() > function, leaving the current dsa_shared_port_link_register_of() alone, > with all its workarounds and hacks? I don't believe that carrying all > that logic over to a common fwnode based API is the proper way forward. I agree with you there, here is little attempt to make a clean ACPI binding. Most of the attempts to add ACPI support seem to try to take the short cut for just search/replace of_ with fwnode_. And we then have to push back and say no, and generally it then goes quiet. Marcin, please approach this from the other end. Please document in Documentation/firmware-guide/acpi/dsd what a clean binding should look like, and then try to implement it. Andrew