Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp623445imn; Thu, 28 Jul 2022 10:43:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1siW0ErYGSBNur22C6F8fv+UdAyK5CX3657tN2Vxy+6v1cLGasxDxa6bVbiviLqKqscPmdv X-Received: by 2002:aa7:909a:0:b0:52b:3afb:fc49 with SMTP id i26-20020aa7909a000000b0052b3afbfc49mr27780213pfa.39.1659030198983; Thu, 28 Jul 2022 10:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659030198; cv=none; d=google.com; s=arc-20160816; b=QSW0eWHXZoY0sH2GXLTBOIHJ/IIxh15VPeWyH6GHDiCuUP15wIJ6inqIJvJHAYvgUR jvzRNVRADr0F4kuIo+O585MxEwokwTL/W8wTbzAuZPemYqPd36x4qejfM3fEsE5Bs3mm 9k8l4Rq1sFRkR8TvsaMLWyL1dc3oGq2I60szpuSr7HRKwjlvO3yPJIzaP5delVqYdCmq bPutG+03UE3q/LchrvFln3ycFLmdyYev4gUWoGtoOVhiXWdyWb5kYYrSMRbkS24uTpuk /rdvVOakCoGsD9sz6H8ryzweRFPFGndPsxgQ/xb/ScXRmPwl5anNHm3ppaqJqysYz2Xv bKjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+neT7drnhUVN6IEwt5cqIrCpyz1zNkYGzrU5Sn+25po=; b=vdjIi6LAwINvIG4AMKemVdF2E8yhGI1jRLdjXB5nkgViJ2VmwLaw94VxYxHw9fqpiY jtG6IHDMk/A1BKzsnAovdqmzKP3gDaZ2/hEAFEhcwNyIKMleQgW2MWYiRvf8LNM7usw6 xjp9ToB7hwRMlnggau6wRHxPfUTuYbYjBsnDxWvF/oClj4+V4ERwhR9lkOYXLDsxJXy9 J1nfutIa9FKYJRJ7kYThzEcfTBAXKT433yO86Erl9sfhOaMN63p6Et0D9E/oDW/DPv9l pPtoq8gV2CtZg9qXXC/pww0N6VARibd+W0wj3cd0C4zNPEfVypbp7jCFUK/euD9sq9Du NddQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b="N/sgs+Qu"; 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 jf3-20020a170903268300b0016dbcfa11ebsi1340515plb.485.2022.07.28.10.43.02; Thu, 28 Jul 2022 10:43:18 -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="N/sgs+Qu"; 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 S232113AbiG1Q5I (ORCPT + 99 others); Thu, 28 Jul 2022 12:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbiG1Q5F (ORCPT ); Thu, 28 Jul 2022 12:57:05 -0400 Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A32125F134 for ; Thu, 28 Jul 2022 09:56:59 -0700 (PDT) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-10e4449327aso3032071fac.4 for ; Thu, 28 Jul 2022 09:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+neT7drnhUVN6IEwt5cqIrCpyz1zNkYGzrU5Sn+25po=; b=N/sgs+QuFpuUwFiUZBjJm6IQrlOlMhIiDya+kN2jqxag5eodzaya5QHHvG90yHGR6J ilM6y/ORThHfyVxS8edWpoQPrqBRXQiG9Wo7TpM26TPXMMvOZWJFi4ILQ1s/nARzg30c Jz9kIepJRc+HYrdrE5UP2EoKTLpt++h1/3cnDxUP7bFAR+uGKhL2Cb4OQdr2JkMAR1xf yaN/x3fcTzhubwXLDbPNia9IbwL/tUfDyMNVSoYLqEjY9NvkcrtSTP4CJbHyx1luCNbk 5aW0yJzTpZ5Q1duc0tw4HOY+tlAl9w1M1fcmapGLnqz6FyOj+iSeG7NOC/mY1Y9kvowb izaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+neT7drnhUVN6IEwt5cqIrCpyz1zNkYGzrU5Sn+25po=; b=vNSpOPVVNIm0c43Uuv9Tft1Mgvr7/dxV41k8nrR6cP/6Bc80mEmsOO1UHy5aidQ6ev RGhA+wGzUIHDJ7Xl/AdKeCBb7sRs9dGcXpssxaDHRxEpnJT19CtGMpJzAkwGylbzLSLe A/3DTh52utOJqVW5fjHpdWI+uAfRnos4icRIHp5rLWjpqiTein6uBAIXlOSlYrloJi1Y MEfd/+XJa++bt/Har8K22ihX7aPjaIDZQhBUdEMAzLHAaCzWvgJp0ADBu5kU2WoP7Kqe wHpQypaaQaCbzrB36ISHF+dxF5J792U4qA8350QWwWTpUDd9Gw4w9IsixlHv6mUgTCRz p1Eg== X-Gm-Message-State: AJIora/22ntni7fVyM87YaoKNjpeOzR0qc0sJIkUtX2ChMHPt9wJQrdL tP0PFSljPh5Ap7UgTm6NIh4JG0848iWGtFK2kwl7cg== X-Received: by 2002:a05:6870:4186:b0:101:17ef:d966 with SMTP id y6-20020a056870418600b0010117efd966mr173601oac.97.1659027418891; Thu, 28 Jul 2022 09:56:58 -0700 (PDT) MIME-Version: 1.0 References: <20220727064321.2953971-1-mw@semihalf.com> <20220727064321.2953971-7-mw@semihalf.com> <20220727143147.u6yd6wqslilspyhw@skbuf> <20220727163848.f4e2b263zz3vl2hc@skbuf> <20220728091643.m6c5d36pseenrw6l@skbuf> In-Reply-To: <20220728091643.m6c5d36pseenrw6l@skbuf> From: Marcin Wojtas Date: Thu, 28 Jul 2022 18:56:48 +0200 Message-ID: Subject: Re: [net-next: PATCH v3 6/8] net: core: switch to fwnode_find_net_device_by_node() To: Vladimir Oltean Cc: Andy Shevchenko , Linux Kernel Mailing List , ACPI Devel Maling List , netdev , "Rafael J. Wysocki" , Andy Shevchenko , Sean Wang , Landen Chao , Linus Walleij , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King - ARM Linux , Heiner Kallweit , Grzegorz Bernacki , Grzegorz Jaszczyk , Tomasz Nowicki , Samer El-Haj-Mahmoud , "upstream@semihalf.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 czw., 28 lip 2022 o 11:16 Vladimir Oltean napisa=C5=82(= a): > > On Thu, Jul 28, 2022 at 08:52:04AM +0200, Marcin Wojtas wrote: > > Yes, indeed. After recent update, I think we can assume the current > > implementation of fwnode_find_parent_dev_match should work fine with > > all existing cases. > > What you should really be fixing is the commit message of patch 4, > that's what threw me off: > > | 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. > > There's no regression to speak of. DSA didn't work with ACPI before, and > fwnode_find_net_device_by_node() still works with the plain dev->of_node > assignment. There was a regression even for OF in v1, but after switching to device_match_fwnode() it works indeed. Anyway patch v4 is imo useful, I'll only reword the commit message. Thanks, Marcin