Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp850680rwl; Wed, 5 Apr 2023 08:30:04 -0700 (PDT) X-Google-Smtp-Source: AKy350bfPVia3ysn4dY+iAY4OBAwuo3hVMzdEIcLTfSa11vnjsigSW+MP2/sIfJAKpfJGVwdEpnj X-Received: by 2002:a17:902:e294:b0:1a0:48ff:5383 with SMTP id o20-20020a170902e29400b001a048ff5383mr5385343plc.11.1680708603339; Wed, 05 Apr 2023 08:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680708603; cv=none; d=google.com; s=arc-20160816; b=R12431LEjFgQRTOxHnXAPiGuCWq12liAhdC9Wn4Ym2rtlls0bOSIvBvO8FdcUZVjSm 9Pgm0CAifftJilooqs9Iy20Jd6NbC4Ul3ZA1lcHNEK/uB32FzMXCTgsIvxBYJcjPzMAI 6SYEN/K3aUpQ+9hakP5NG8SX/wSHTP1CbuWQOpylcZ1ZB7au1HeRnfvW5IRSWeFnyX/q UXOy9LpljDZG3JGyGiY4XbB/V72Qe3jro1KVPh2r2i76OB74wLBvIChbmBRJrs0MaetY EJRZT1IzTLx88ZAvVnN7a5q7azE3/xqu58CxZdZXIGc7/xt6u6lbHVg1Aansg0i8QHwD w7Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LS2/yUet4pB3Wwap7OssQP/fnPePRv71OUM0TaX8V2w=; b=lQ5W1u/dWpS2wRkBZ/lHQ3CAvD2DHWZKVjVFVW6mMRwXIY19ZXOaLkb4LhU3VA4dho vk67osPyxBq79Uh4HU9jfRBeoB+LI2jA2soLK0YPUr2Yuuk2z5F+wv1mCa+q/2mytobu 2yiBM6vtmu2iE/5iXRmgVVvH8D+YIbUAOymXsP4hueGMuzWSD6yld7FNJN0G3ZFTxOYd MOC+uLDJ8i4BNz/qJmvhxqkRCH0cqGyslLpgpKVoFXupPaILmACGp99ePS2p9YhxHdK9 K3BPDpzf8ueqdxpCrJvlxAmt//s/FzsitVtHn6mSE1UhJQM5wHyvMS0VlOVOYcSLfLLZ DGnA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r68-20020a632b47000000b0051410c79705si4393133pgr.867.2023.04.05.08.29.37; Wed, 05 Apr 2023 08:30:03 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238551AbjDEPXj (ORCPT + 99 others); Wed, 5 Apr 2023 11:23:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238762AbjDEPXV (ORCPT ); Wed, 5 Apr 2023 11:23:21 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA5BF5B9A for ; Wed, 5 Apr 2023 08:23:04 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pk4xx-00073O-O3; Wed, 05 Apr 2023 17:22:29 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pk4xt-00017e-Jm; Wed, 05 Apr 2023 17:22:25 +0200 Date: Wed, 5 Apr 2023 17:22:25 +0200 From: Marco Felsch To: Andrew Lunn Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Broadcom internal kernel review list , Richard Cochran , Radu Pirea , Shyam Sundar S K , Yisen Zhuang , Salil Mehta , Jassi Brar , Ilias Apalodimas , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 06/12] net: phy: add phy_device_atomic_register helper Message-ID: <20230405152225.tu3wmbcvchuugs5u@pengutronix.de> References: <20230405-net-next-topic-net-phy-reset-v1-0-7e5329f08002@pengutronix.de> <20230405-net-next-topic-net-phy-reset-v1-6-7e5329f08002@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, 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 On 23-04-05, Andrew Lunn wrote: > > To bundle the phy firmware parsing step within phx_device.c the commit > > copies the required code from fwnode_mdio.c. After we converterd all > > callers of fwnode_mdiobus_* to this new API we can remove the support > > from fwnode_mdio.c. > > Why bundle the code? Why not call it in fwnode_mdio.c? The current fwnode_mdio.c don't provide the proper helper functions yet. Instead the parsing is spread between fwnode_mdiobus_register_phy() and fwnode_mdiobus_phy_device_register(). Of course these can be extracted and exported but I don't see the benefit. IMHO it just cause jumping around files and since fwnode is a proper firmware abstraction we could use is directly wihin core/lib files. > The bundling in this patch makes it harder to see the interesting part > of this patch, how the reset is handled. That is what this whole > patchset is about, so you want the review focus to be on that. I know and I thought about adding the firmware parsing helpers first but than I went this way. I can split this of course to make the patch smaller. Regards, Marco > > Andrew >