Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3644986rwb; Mon, 16 Jan 2023 10:45:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXsZbyNQHKCES/nZ+jNbqLcKYEhssCaLLReUg8Poc2UfKWvtlt2b1uEhZMy/GecSC1QUIwoF X-Received: by 2002:aa7:c549:0:b0:46a:732e:fd29 with SMTP id s9-20020aa7c549000000b0046a732efd29mr10892742edr.42.1673894730553; Mon, 16 Jan 2023 10:45:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673894730; cv=none; d=google.com; s=arc-20160816; b=guf0I7O8MafJ/Kx63wafJD2JQ0J3VkrSC5SrMew62vGHuiHXJLMnuCI7UWlM+0G9JW qkVcc+lE3AfNjlTOH0MU/t1ikVtXEvtvfQHaKaMezDTMZAtIUah9i09tyTpBMC00/sCO rlRafgRe6whDL+96lnRBIFAUeOtOXvnYZU8QNrHslF4FQ7+GR0Vc2Dkc09NUaoyjgAck eE79DK7cTZhKMJr2YHUrBl+QjeH5+rELSJDWdw/NwvlNCDSfXDEZD0eGB6ySt1lfJHli dNW7CR3+q87XERCCkx2d8+HcLi15f8UDTIlUfxydcpqEhG+4qggjPnDfKBiFieLrF3Wp X3jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WLkKdr7pDQEIzmgkyKtN1Zu++zCyw4Keu9Km6S3sT2o=; b=VqGSnlq412JRAGcbxfFYJcUt99jSKbDvoP1NCWniOL3ijyxfRlXSKOKv+4bH+GdFy9 Hlg7Stq4uFH4eEB5zjc8uldSkg42k7liTsMgSJmKFW+p131sDOSJHFlFNS7guJttXykq rhr+tSbozD/OhMbuzsFHh1iwu4Ep3uFdpxTGIDZoZcJh0Ftzfnf2LkXNlOYSqYFOlMLq RzlOJ9RKWGvKZLTlHajTv74QqKIoSozn1JS3c8rWUFEyGrQ3dN8vxAtkK9M3vKoOUpid /EBDdD68CYYzBRVx8Ugb72yovKbZwNSO7LKf273Cxn4Azxy7NrKO1+Wm9mQQR3Ng/i83 W8qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=QasTzb8h; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v23-20020aa7dbd7000000b0048ec2e6ba3dsi25867565edt.585.2023.01.16.10.45.18; Mon, 16 Jan 2023 10:45:30 -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=@semihalf.com header.s=google header.b=QasTzb8h; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235170AbjAPRx3 (ORCPT + 50 others); Mon, 16 Jan 2023 12:53:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbjAPRwf (ORCPT ); Mon, 16 Jan 2023 12:52:35 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6537C3B3E0 for ; Mon, 16 Jan 2023 09:35:04 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id f20so30689895lja.4 for ; Mon, 16 Jan 2023 09:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WLkKdr7pDQEIzmgkyKtN1Zu++zCyw4Keu9Km6S3sT2o=; b=QasTzb8h2vrOzkCrftuDbLS+D57mrkSyDJFNmvhtJg61QCpXBah5MQQ/klFT+Jr44m OfExarCYmScCqot8/2QoF2Kn6hockeWUu27BKBHaw+Vw6fz+Jow6YpMOSiHlDgxC7qhP EM/wOHX1PS88OTZXj6uG2qMVwZFi3u37IBsUODw2sJtv45GymLllUGbqdIyHat9jZEtp 5zGyuiyAQFvvbErrOfKVgcXcmSh4wE+9Wf+/et6R0cs1BNYNaTQaqu1mJphmFK7n2v7q InbhxENc/mnmZeHgZx7q7HwnK4+wdwGzz+9hvYhYU6h+LbB+kKtF52ZSeZA/SVyzh2hW tN6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WLkKdr7pDQEIzmgkyKtN1Zu++zCyw4Keu9Km6S3sT2o=; b=BriZnccPP7vEJzR7cRfphWFxeZR1523arn0a1DVLrYmCCURP8nS38HuxbzTy1bmUkV 3UnFPec8lKdDpbSWowwnwrQeHkjcEGUvcxBKYuFvSHIq9pqInX6m29P7japvnlYoMpoj 8wlnGgB9l8PCrHKSM7Ce82JTZnyuqoKnW0L/S8h0qAHB1AvPXqq/HECGPCNvd++KISv5 6FgeBzy+Lm7a/J+U+LdSVAOivkMF8ABD4/v2s9ZaQ8lOVx6MPdiKhNJtFUTQBbjt3QsS QsH6HKGF84tWF+PfzCulxajt11v9fAI6IkDjV/+0jh1a6GBsV+HS/3r8d0ai9Ghb1kVo DLyg== X-Gm-Message-State: AFqh2kqzRNg94bFEbO6lbqaipbKkgxojRY787RpyFgWSakKq8g7aQcif P8e5M4dvIpcdz5CCfX/7K86LrsGJ9UuYC3lE X-Received: by 2002:a2e:994f:0:b0:281:771:e1cd with SMTP id r15-20020a2e994f000000b002810771e1cdmr3381416ljj.33.1673890502691; Mon, 16 Jan 2023 09:35:02 -0800 (PST) Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id k20-20020a2e8894000000b0028b7f51414fsm707333lji.80.2023.01.16.09.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 09:35:02 -0800 (PST) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org Cc: rafael@kernel.org, andriy.shevchenko@linux.intel.com, 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, mw@semihalf.com, jaz@semihalf.com, tn@semihalf.com, Samer.El-Haj-Mahmoud@arm.com Subject: [net-next: PATCH v4 4/8] net: mvpp2: initialize port fwnode pointer Date: Mon, 16 Jan 2023 18:34:16 +0100 Message-Id: <20230116173420.1278704-5-mw@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20230116173420.1278704-1-mw@semihalf.com> References: <20230116173420.1278704-1-mw@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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. 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