Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2195872pxu; Fri, 18 Dec 2020 07:39:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVJh5XP4mmuSQmEqmRE6UswyeuZxCJ1FDtzCzyl1+tQA4KQQgUFdmAAUFi03P8C/IvI4mL X-Received: by 2002:a17:906:aec6:: with SMTP id me6mr4580532ejb.542.1608305959373; Fri, 18 Dec 2020 07:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608305959; cv=none; d=google.com; s=arc-20160816; b=D/fAa7aqXcOqU+lRr26fX+eCRTMF4FuRbPtsy5lOgjum7t/ten24mh2fr97C39eE5a L3yfcrStdCU21fa4yW7xRcP9wHEJeMRTsQEELDUCeCot5Ufo6cx7D+KVntB3BifhMWRo Mk9FWTRemu8bgt0kxreF2vf1UZjst9ydx7qVyltX0O4Mn3mvAt/pQSfqDxYuKa5/SCOu kweAB6JN8Ae+kBJIYSUWwZBj2tf2L3SmgDKWax/DPBhcMZ/TmzePDh/srI4TofZKZ5ZW oe9eityouN41Pu7COOx+DbyNKdMHv6DsvfDq9uL8Rp4PjgqmS88cYPnBi/mq7YI2r2oc Y54Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+KLSZTU5ExRpj/cZNjbTv8MS71w3sCFIMI4H99ieEKo=; b=gyfYwNCKgl4oDwPjyhDDu0IfDo6ayPsBNH4Si5cesqTlC9zFcPkXsBBNmYKNOw0c+I deDcqxV8wuy6VNa8Z6pm40htTX4hXp71syh/B5HRx0S/PD/+5pyW4OnxooQYxy6o9a8D YDNIHBFh3A2sx+N2/iz3K+du95TwkVjFJWdlTjPPbEf6EbHTMoE2R1T5DbbVD+lZOfrs MA92GOt2diak6Grc9/pGVl7WiuxXPGQ4XgvOb7mcffew+TNkawx0dBoiytjirc2i5qh1 HQi9sFG1bIBpOHOrev0kCnMK83I+voy0egkzrfsUGcUZOpey9x8p4cSPvz+sT0luUBBk 8nSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="D3L/yJ8R"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si1827408edv.49.2020.12.18.07.38.56; Fri, 18 Dec 2020 07:39:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="D3L/yJ8R"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728879AbgLRPhj (ORCPT + 99 others); Fri, 18 Dec 2020 10:37:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727817AbgLRPhi (ORCPT ); Fri, 18 Dec 2020 10:37:38 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59273C0617B0; Fri, 18 Dec 2020 07:36:58 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id v2so1740505pfm.9; Fri, 18 Dec 2020 07:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+KLSZTU5ExRpj/cZNjbTv8MS71w3sCFIMI4H99ieEKo=; b=D3L/yJ8R/OunwhSbKyc2rz9lb4mfdgQquJr33FFTlqhVg6z/JACxfrmS720bcqh/Ib Pw6mECItEwlQUWPQ4EJ+EJJ2tyRVYW25NC0zrIoyhgMW+8C+iFOSkenV50hekAvn7Z6y BJRQumM4mlXxzFNbWqLA3Wqzx8JdX08m7T0zc6Q/jAilDAIrPXlUSuImzXGGTDyhn3S7 XfXgPr0sZSFXBQH0Sm7I8Zq8Dwh20lkzfCHSGuzEu6Vly96TvmUxV75SfHSbEidDQnlk SHqQVtoSbC1tMVCZniDtNjymplJpvdwZEvSzq1wxQmbYSrUiDsOIU9LuCaxQ/5w13OEK 7qLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+KLSZTU5ExRpj/cZNjbTv8MS71w3sCFIMI4H99ieEKo=; b=rUfZCmCxMtlT86M+ccMiICo7SnOsqhJRpGW+dNN4I5LUZYdqpnkUFc2lw3U9+C5of8 uinsbfk6oIp8fVXpPYUHnJjesgH77zM5uT3DOPpv/1b30eOhtVCecRa2tx2XGir3egR8 ya3eqTc/Yg5ipR6Mw+de9UQu1ouWZIcR2heZcxmk2HjtSIMGiOrJkzXMjmB06gJQcV/y as+lAmnI5O+EJP3ySnw8xyhRIt56hEZnX9EdZMk8Z2Jo8fQZBH2QAkr4uGzstaZzTHvM ZCFfPeyRtqave7ROU4dUcEUIdPxpppKLSkHpMqV+vtgE9RlDJthIesBcc5VU8cokbrvR Xd1Q== X-Gm-Message-State: AOAM531lAqqvLFrL9mdCyC1aU+cOYhdKys1jYT0w1c2UOeLMNAfRmZEX gFtjWZg+JQ9q11pkF/fQnNVX//ZQK2AE/NajiC8= X-Received: by 2002:a63:74b:: with SMTP id 72mr4681349pgh.4.1608305817763; Fri, 18 Dec 2020 07:36:57 -0800 (PST) MIME-Version: 1.0 References: <20201215164315.3666-1-calvin.johnson@oss.nxp.com> <20201215164315.3666-9-calvin.johnson@oss.nxp.com> <20201218054044.GB14594@lsv03152.swis.in-blr01.nxp.com> In-Reply-To: <20201218054044.GB14594@lsv03152.swis.in-blr01.nxp.com> From: Andy Shevchenko Date: Fri, 18 Dec 2020 17:36:41 +0200 Message-ID: Subject: Re: [net-next PATCH v2 08/14] net: mdiobus: Introduce fwnode_mdiobus_register() To: Calvin Johnson Cc: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , "linux.cj" , Laurentiu Tudor , Diana Madalina Craciun , ACPI Devel Maling List , Linux Kernel Mailing List , linux-arm Mailing List , netdev , "David S. Miller" , Heiner Kallweit , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 18, 2020 at 7:40 AM Calvin Johnson wrote: > On Tue, Dec 15, 2020 at 07:53:26PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson > > wrote: ... > > I would rather see this as simple as > > > > if (is_of_node(fwnode)) > > return of_mdiobus_register(mdio, to_of_node(fwnode)); > > if (is_acpi_node(fwnode)) > > return acpi_mdiobus_register(mdio, fwnode); > > > > where the latter one is defined somewhere in drivers/acpi/. > Makes sense. I'll do it. But I think it will be better to place > acpi_mdiobus_register() here itself in the network subsystem, maybe > /drivers/net/mdio/acpi_mdio.c. Even better, thanks! -- With Best Regards, Andy Shevchenko