Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3647581rwb; Mon, 16 Jan 2023 10:48:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXv5lZo7PUlZwve3hQlLd4dD2kyNzn0/buo/PdSKliXGNpmCgi4jhTGmUEDyDoUm2HJI1ZXQ X-Received: by 2002:aa7:c856:0:b0:499:c083:fd2e with SMTP id g22-20020aa7c856000000b00499c083fd2emr11478866edt.36.1673894880134; Mon, 16 Jan 2023 10:48:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673894880; cv=none; d=google.com; s=arc-20160816; b=BD00T5BCay5D9r3a3Xrxc39SUG9cLIr1cfkSyib0vkrHo15dxHG91Pz3mcVslh0haC JFt7Jql4Vf4cqFYjPBARLeuWuM+sXlIjmz1+nDxzW3+yqkl9gR8K62LCscXoMP7T8lbe cAMGsK/44FA3a6EbbVa7V3SKVFYcUItdy/brQ/lXUmiqsDTS2LrRd0+W5dRgQ5LsrqLP RXqjtzKnArL6V8MWkrroxqwlP/xfyYehFp8O1pgtC5e4bL8bHOJkfZFooqgWu4BgTYIw li0AuLQ/9sZo/hJ+KIDFiwuLYLFlhCTnSOc9vT2qktFeMVerZh02Gi9Oszab+TK5yIyt PB1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3uipB5iSY7+/4vovImSrLXig0St+BfgqpweHvwq3WtE=; b=veHR+sO8h+Xrfn7iJJlb5z6RHK2aN2n57psV0D3Z8gosOJiEr+BJTLN1D4sjrv6Zep y2JwkixqxCVrqymaxH38wgED9+pymJHPTwiUYE6MJeTxDMyV2ex178gO+C8cOYOrEbh/ xEQLpTqlrmGx62gwMP1yQh1+A1P5+fWCdtu/l9tE3+1Y9B9TMQC2L+Y4zGiARI9d5OGZ p9gKfeQx15uB30eRdnG9dHb79OoWMeIPfzfgfMRD2e2+8FREUsyr4qWlRK46vUf9PVjA 9BPg6Ez/3zBwPx5sqZL/GCaMzHoxnNBiT8onwqzRLziMDJP6uW7vXdVFwAecqRH13vZt Ru7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="l9g2/Y6k"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a05640250d300b0048b0ae570d8si37571356edb.508.2023.01.16.10.47.47; Mon, 16 Jan 2023 10:48:00 -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=@intel.com header.s=Intel header.b="l9g2/Y6k"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233379AbjAPSQV (ORCPT + 50 others); Mon, 16 Jan 2023 13:16:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234753AbjAPSPS (ORCPT ); Mon, 16 Jan 2023 13:15:18 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E46516AF4; Mon, 16 Jan 2023 10:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673892157; x=1705428157; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Mjm60n7xCLcyGnAQhcWIofPMSbTPmkROv8KCynD2g6E=; b=l9g2/Y6k4t3smYlHbCiyi7lHHuxqOxT96QoyPLgq8oU6verLXr/SeWtv NDci/JQzQOEI4KcTHRaouon+3yI2cicpiOijBW+PSZpVZOwevrgViirvN 2/CkJBG/QZZktfKZa2mMPBtBgm5vvmqC28xKb1ZcAivEmRn74vUlWR1kL v8t4T1QUlov4jRjAOfKLOvUSio+LATDTb501nZl4S12AGixlgmLhMrkAM HvIbFncOhMOvBbDGm7gRrqckOdQxX25E9rtiTgYxwMuosgcZS9pBY3U4X S0AG4sUeKXcNEnEDZ/gG2ZMCpmJjSQ9nYwctvoN35oVvq9Gbu18ABxHXc w==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="325784096" X-IronPort-AV: E=Sophos;i="5.97,221,1669104000"; d="scan'208";a="325784096" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2023 10:01:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="904395780" X-IronPort-AV: E=Sophos;i="5.97,221,1669104000"; d="scan'208";a="904395780" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga006.fm.intel.com with ESMTP; 16 Jan 2023 10:01:28 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pHTnR-00ACt7-2L; Mon, 16 Jan 2023 20:01:25 +0200 Date: Mon, 16 Jan 2023 20:01:25 +0200 From: Andy Shevchenko To: Marcin Wojtas Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, rafael@kernel.org, sean.wang@mediatek.com, Landen.Chao@mediatek.com, linus.walleij@linaro.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, jaz@semihalf.com, tn@semihalf.com, Samer.El-Haj-Mahmoud@arm.com Subject: Re: [net-next: PATCH v4 4/8] net: mvpp2: initialize port fwnode pointer Message-ID: References: <20230116173420.1278704-1-mw@semihalf.com> <20230116173420.1278704-5-mw@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230116173420.1278704-5-mw@semihalf.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 06:34:16PM +0100, Marcin Wojtas wrote: > As a preparation to switch the DSA subsystem from using > of_find_net_device_by_node() to its more generic fwnode_ equivalent, > and later to allow ACPI description, update the port's device structure > also with its fwnode pointer. I believe this patch worth to be submitted even before core of this series. FWIW, Reviewed-by: Andy Shevchenko > Signed-off-by: Marcin Wojtas > --- > drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > index 5f89fcec07b1..a25e90791700 100644 > --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > @@ -6884,7 +6884,7 @@ static int mvpp2_port_probe(struct platform_device *pdev, > dev->min_mtu = ETH_MIN_MTU; > /* 9704 == 9728 - 20 and rounding to 8 */ > dev->max_mtu = MVPP2_BM_JUMBO_PKT_SIZE; > - dev->dev.of_node = port_node; > + device_set_node(&dev->dev, port_fwnode); > > port->pcs_gmac.ops = &mvpp2_phylink_gmac_pcs_ops; > port->pcs_xlg.ops = &mvpp2_phylink_xlg_pcs_ops; > -- > 2.29.0 > -- With Best Regards, Andy Shevchenko