From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9036C433EF for ; Mon, 20 Jun 2022 17:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243556AbiFTRtH (ORCPT ); Mon, 20 Jun 2022 13:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232587AbiFTRtG (ORCPT ); Mon, 20 Jun 2022 13:49:06 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8472DB850; Mon, 20 Jun 2022 10:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655747345; x=1687283345; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OKa6b6f93kGV9/bC7EwdIhfMop2yIvaF5QfkGTjKUZ0=; b=i3QpTGRVWGp7wSQrK4VheDggz7GEyRDhyu4KCSdXTQc6Xkn3Ynad7NYp 8SPU94kAAyShbgbf7JxejzY/NZeMnsiG6/gMTmz6mLamwbPPSGZ0dvjYF x7sD1KP/rkdaU1MglsBlE/qQ5ZCMOjVLWXde9jpTOkaerBy9zOc7Buu3q TwEldaAofiVka9YusFwqWH8Fr+/7Uupoa4eTr/BSi6nFdakO9JGB4Bg80 RvUXE6WXdELq560IBsMOYRpMwYBawJiw2Dic/BLX6Ywu02hbhQ07/n3+H S235QFFTY7qhsNQHUe5lN4wiF5u5AFdnZAS5NL8fDQIOSOvec2Q4ZGPEq g==; X-IronPort-AV: E=McAfee;i="6400,9594,10384"; a="259770137" X-IronPort-AV: E=Sophos;i="5.92,207,1650956400"; d="scan'208";a="259770137" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2022 10:49:05 -0700 X-IronPort-AV: E=Sophos;i="5.92,207,1650956400"; d="scan'208";a="620189113" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2022 10:48:59 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1o3LWC-000kaO-2Q; Mon, 20 Jun 2022 20:48:56 +0300 Date: Mon, 20 Jun 2022 20:48:55 +0300 From: Andy Shevchenko To: Marcin Wojtas Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, rafael@kernel.org, lenb@kernel.org, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, hkallweit1@gmail.com, gjb@semihalf.com, jaz@semihalf.com, tn@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, upstream@semihalf.com Subject: Re: [net-next: PATCH 06/12] net: mdio: introduce fwnode_mdiobus_register_device() Message-ID: References: <20220620150225.1307946-1-mw@semihalf.com> <20220620150225.1307946-7-mw@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220620150225.1307946-7-mw@semihalf.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Jun 20, 2022 at 05:02:19PM +0200, Marcin Wojtas wrote: > As a preparation patch to extend MDIO capabilities in the ACPI world, > introduce fwnode_mdiobus_register_device() to register non-PHY > devices on the mdiobus. > > While at it, also use the newly introduced fwnode operation in > of_mdiobus_phy_device_register(). ... > static int of_mdiobus_register_device(struct mii_bus *mdio, > struct device_node *child, u32 addr) > { > + return fwnode_mdiobus_register_device(mdio, of_fwnode_handle(child), addr); > } Since it's static one-liner you probably may ger rid of it completely. -- With Best Regards, Andy Shevchenko