Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp488084imn; Wed, 27 Jul 2022 11:35:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1siTW6r7zfPhmrYYvZbTsc1jhHP7eLlI3ctbc7sQwkdZ+A2GbNeRik9HGXp4S5Ur2EAIVcN X-Received: by 2002:a17:907:3f13:b0:72f:2235:2c92 with SMTP id hq19-20020a1709073f1300b0072f22352c92mr18502807ejc.219.1658946918454; Wed, 27 Jul 2022 11:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658946918; cv=none; d=google.com; s=arc-20160816; b=0H51xXLtiAcjUzN162B15/VGLByYd2bvKg6Jn79/jf5EOcZbJPvSF+q1DzKD/T9Uah vhBOVGYdi43/DZdCjd6Cuhm5vYA6ROu6pgBtFRQhE84IwqjVkP6kXhuCBo5VziJKYvxx 4ppx3jUahBYunfq4Yz30CvCycL/PV09c3ZLJHLqQWsECF472HZ/S927a/LE860/eDnGk x97q6PUthpnffmPgttVEcrex+9cn/2mwmnk7ePOMkDozJEyFb9X1WfQzHmIOOygpjv03 WiuMTXjNWpvLckN/zYWCJC5gBoX4MoIDaqsO8aRRuFAqemsh1NBXGV74lqA7x9jsD3q0 3y7Q== 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=E87C+NlfCXvLpu0xuiimJX9d0y6Hhjgvfv+tefp2zBQ=; b=HBIF1ZVTundyRXp6JnEOIy1OwAeMd6GvfBlFa5t+Lp0Q9MRxNd9we/WNkrf1xZzhm5 0Hf3cKnboCVd3lDtXmnEcPEa0mJStFmhfI8BF2slS1TlTmf3xx3f6oKFpwbkExbzMFIR oRSSTN1TaVX7YiyX8/tbTgXFNrxB5olGr88hWmD/FUqllNWnDiwwGyhy3UCaCBPtNRba VPFRQjFrj0Lg5hBVKRSJgRRblSbwqbDopiCp9qICAE0Sv3fTu1+cQZA/HMU7j4Ctk5cK LYafB6qoKqpL++geEkHrfItfxFYYQglI0HfYBAdpy8fa9yRx6WMDR14lNn36RExN+jeb A2IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Cd4p940Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a056402274300b0043be6e20cbdsi12095194edd.23.2022.07.27.11.34.52; Wed, 27 Jul 2022 11:35: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=@gmail.com header.s=20210112 header.b=Cd4p940Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242507AbiG0R4s (ORCPT + 99 others); Wed, 27 Jul 2022 13:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242922AbiG0R4e (ORCPT ); Wed, 27 Jul 2022 13:56:34 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EAFF9C279; Wed, 27 Jul 2022 10:01:00 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id z22so22234564edd.6; Wed, 27 Jul 2022 10:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=E87C+NlfCXvLpu0xuiimJX9d0y6Hhjgvfv+tefp2zBQ=; b=Cd4p940ZUF4xOgn2nYp6lHdne9lyf/AsO7bXQVzkOE/6TE/wm7RrHRkhYxn+adrUBm 4kbvTIyTbwGLOZlMH0u1haSU8NLMrl4atnJe0uwWG3v58TBYpENxIp7JTdMAf6tlGZcd Y+/oKGiUcdcrPacY9Bt3mLErgIhKg38I4f3pIcIMCnNLd06qihxaO6rk0oTJ5rb/TxHU bnQt9ym4lP3lSBUV482yuecSHJxJJUwuAu4rw5cnKFuyO5cEsPaLb6NsWEmhMy6u+hAL dUtzr+yjWVgXmLCgZJ4wgxUXAv13Mnhwmn040Thkz6BjP4GcEITwTYfY1eIJWdHqvrn5 9BaA== 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=E87C+NlfCXvLpu0xuiimJX9d0y6Hhjgvfv+tefp2zBQ=; b=LCIlCISNk7SU2k9TKyS5ov3QMrAFHYh/TkGKXBcO8LvxSrfssA9FZq3YOFRNCje049 NAM2sHbWMHeedGwXABxplP3JD6K6+21jeXJ6NNjH7NqEwYHl/xCj4JKFrmhMYAGhH2un 3EtdmsXIW1XdN9nkWRcTatd4gRWQuONrsSboOXDd+gLT/9usK0G8zYWqKv0UaXUnOUbS Vmp/Yhjz29mt6+ZniRKjkJt7mSWPe4FESFYtJpjKZBv9vPG2VyFedVgdC9oMZZlr1JMz r+/CsDy7tOdlwIQ8VLA0fBpv9EZhjYJZd8DKjoaBQN14GbxnfF6FZHAOp6cXztWH/q74 oLOA== X-Gm-Message-State: AJIora9r1E3/Oj8oX8p6/SxGlC3Sx7ef3T2Y6+mywDHdjfBBhwBYZLOA 5B2x/jYrPCLxSi3m4V7OdseILCtaAQ6CSI238zY= X-Received: by 2002:a05:6402:40c3:b0:43b:d65a:cbf7 with SMTP id z3-20020a05640240c300b0043bd65acbf7mr24290878edb.380.1658941258507; Wed, 27 Jul 2022 10:00:58 -0700 (PDT) MIME-Version: 1.0 References: <20220727064321.2953971-1-mw@semihalf.com> <20220727064321.2953971-7-mw@semihalf.com> <20220727143147.u6yd6wqslilspyhw@skbuf> In-Reply-To: From: Andy Shevchenko Date: Wed, 27 Jul 2022 19:00:21 +0200 Message-ID: Subject: Re: [net-next: PATCH v3 6/8] net: core: switch to fwnode_find_net_device_by_node() To: Marcin Wojtas Cc: Vladimir Oltean , 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Wed, Jul 27, 2022 at 5:24 PM Marcin Wojtas wrote: > =C5=9Br., 27 lip 2022 o 16:31 Vladimir Oltean napisa= =C5=82(a): > > On Wed, Jul 27, 2022 at 08:43:19AM +0200, Marcin Wojtas wrote: ... > > > + dev =3D class_find_device(&net_class, NULL, fwnode, fwnode_find= _parent_dev_match); > > > > This needs to maintain compatibility with DSA masters that have > > dev->of_node but don't have dev->fwnode populated. > > Do you mean a situation analogous to what I addressed in: > [net-next: PATCH v3 4/8] net: mvpp2: initialize port fwnode pointer > ? > > I found indeed a couple of drivers that may require a similar change > (e.g. dpaa2). > > IMO we have 2 options: > - update these drivers Not Vladimir here, but my 2cents that update is best and elegant, it can be done even before this series. --=20 With Best Regards, Andy Shevchenko