Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp84908imn; Tue, 26 Jul 2022 23:46:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vHgD7oiH3b3Co/wufJR9nIV4+2z+ZV7VFK/5ypu8EMI7LaILOo3xCEEG3YoPs0qpb3LkMi X-Received: by 2002:a17:902:dac9:b0:16d:5cfc:6fb7 with SMTP id q9-20020a170902dac900b0016d5cfc6fb7mr17547412plx.64.1658904359759; Tue, 26 Jul 2022 23:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658904359; cv=none; d=google.com; s=arc-20160816; b=rR0yTJBAyRdNeYQZY8nvRDpaYHJ9jnzwZW3gX394agCx+JbYegYDiHy1ebOrDZE3Sa OHtG/VpFBWy5ZIvWWJvRIsBowr6nSYzN2IahE5FfGPbCoZ1dCilTVDXQoxUKKOLx3xcg 5jbFe6qsXnnn5ROCP7C2RLXgE8ec9Cvk74XuRHK6HzoiowJIK+7yBNwlOpTNX9bfjKCK tD3mojpscJ9cL2YcR8VoGVgXnrAPySedHXRGFZQ7rUyuuv+oMaa3vcqR6Xv5VtNIXBs6 +IGsnUPUEIXTcnwtUHcPhlrXD6lFurQNlQjqVmXJozBDemW84u4BEQiVjT000XFA/qTk lM/g== 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=+d/aojT1TCgagMDA6o2QljnvpRxpeI/WOeBAtluw3O0=; b=mPo6l1PXivf26nmMZqU0J1G7TQZ/q6sJXPN9q26/3yvcIJWWVbarOyM1Omw+dvvsQ+ +wbGVLZrQ35EQ1b2aqj+BM6ybWewX2+b7GNCBTtKuiyA0Hm6t4tTEvL11v4FlBE8dXhw 2Tq09SnKxhIpk69pc/D98qduFGJJfdFUDuQMK7kdledL3rFUzX50xt/qGVyI/gwCWyJT p/nFM31mM6Mq/iA9TboCG46vG6ieuABejd6OJZhJf177R2J2XW77TFkEY9uSbU+manuC Id9OwoQPmblQCkwZrsA0z2RraZEacpFkAVcF4qDi2FqTCEKPLWX25AJVg04g+tcKLpvm 4a5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=KgE76jCo; 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 q16-20020a17090311d000b0016a26848877si22488621plh.410.2022.07.26.23.45.43; Tue, 26 Jul 2022 23:45:59 -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; dkim=pass header.i=@semihalf.com header.s=google header.b=KgE76jCo; 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 S230014AbiG0Gof (ORCPT + 99 others); Wed, 27 Jul 2022 02:44:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbiG0GoJ (ORCPT ); Wed, 27 Jul 2022 02:44:09 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A4CA40BCE for ; Tue, 26 Jul 2022 23:43:46 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id bf9so25649474lfb.13 for ; Tue, 26 Jul 2022 23:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+d/aojT1TCgagMDA6o2QljnvpRxpeI/WOeBAtluw3O0=; b=KgE76jCoQUSTM3acGvNgdioxOEkcwqT3ATxQ/UKzncXpzHm99rgdQcDERpI7r0DfFz +kuBVu/gqktgjLZuKQpqo/2Dcsy3A/EbG4tmCU7vt1sShG6wE+bzGY7TwcJNFGCDzK0o 9Byu/2RBM6kvb6w4suTzpCgxsv7cq7icKIz6y8yeCHzuM3qVjxrcIBl31wKX7RkywxI9 nV1g914DXiCqEsTlKfNgLX1z6BmmnRP6qquAFA4vtuMwWQfeRBAPG975EnFuppbFuFuA M9enYRdLjp4FUaDYzrM6y1LuZp+h/IgPdOSmE11tyligi2Ud46aPuEDcjwnpRwhkl+Dy evlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+d/aojT1TCgagMDA6o2QljnvpRxpeI/WOeBAtluw3O0=; b=GTipLsFA9aIvEjbZn6nz1a3DHXlELMHOpXc9ks6B/MiQqSVufUp95AkPo3ueWworWU eI693lweFxVL6EjC6o0zZGY6bRuCqRBXsMQf6Dz8YEkCVxWrDiSme29bkQv3EZ4ugO6p HaT2XvwIwlNFTHUZcIAjdgt7lvXStxocAWb9cFYwA8HmzSRJdYAowCdW4TPySQXY3xxo 4av0n2RjHRvYLhB6S3IX1/HvQzb/dEqHCbOfBZqI8o2hkYa0CX2bM55kUO16OTeQ85qx bvhydvH42S7YKYt205riDFrUKX0691xrHJLO88J4KFe5hmkXTi91PBK5V8p4JLDslJD8 rPFA== X-Gm-Message-State: AJIora9j5yswX9wupoaC2pc40s3QnL6MfLSSuHvNls0kJvUqviG8EnwG gfRsHKPsjzOV40n/rqDY5L+P/9H3MCcrqg== X-Received: by 2002:ac2:456c:0:b0:48a:8c7f:e332 with SMTP id k12-20020ac2456c000000b0048a8c7fe332mr4788547lfm.410.1658904224554; Tue, 26 Jul 2022 23:43:44 -0700 (PDT) Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id w19-20020a05651234d300b0048a97a1df02sm1157231lfr.6.2022.07.26.23.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 23:43:43 -0700 (PDT) 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, gjb@semihalf.com, mw@semihalf.com, jaz@semihalf.com, tn@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, upstream@semihalf.com Subject: [net-next: PATCH v3 4/8] net: mvpp2: initialize port fwnode pointer Date: Wed, 27 Jul 2022 08:43:17 +0200 Message-Id: <20220727064321.2953971-5-mw@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20220727064321.2953971-1-mw@semihalf.com> References: <20220727064321.2953971-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, the port's device structure should be updated with its fwnode pointer, similarly to of_node - see analogous commit c4053ef32208 ("net: mvpp2: initialize port of_node pointer"). This patch is required to prevent a regression before updating the DSA API on boards that connect the mvpp2 port to switch, such as Clearfog GT-8K or CN913x CEx7 Evaluation Board. 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 b84128b549b4..03d5ff649c47 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -6868,7 +6868,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