Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp359536imn; Thu, 28 Jul 2022 03:01:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spNQ804Mb2umVgJ45/vtOarzE+lhjNJue1Rd6Fyl9n7CE6VXmZLnChlIdbmnrrUBYBWXd1 X-Received: by 2002:a17:90a:9409:b0:1f0:e171:f2bd with SMTP id r9-20020a17090a940900b001f0e171f2bdmr9059255pjo.245.1659002480491; Thu, 28 Jul 2022 03:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659002480; cv=none; d=google.com; s=arc-20160816; b=sfV5hkFuSm6Tl7Q5joPTyc5MgMjU9fyUCW2UCz5w+3mvoQmThkRzmlr4TTqDWBi7IS NnLCOeb9shaFj+lx8XjlrQlU+guTC23wY6MXgucNyIhQ06fnYa7unXXzbvMgA50w/DrC HGEPF10VDQx1Mr1XYRyBXJ7Wz5/9GsUntCkAdo1c4yzoneWqHcxuc2/pcKD5qYJi+ExQ 9dbYlhMgfFf9nEVJ7oWMl8x7rkoFbrNmFQUwVDz5d0it6rpTOoiVaeB357k+/ItctA8i PZps43N75ocLqwLICBIYLjkPjqivcyCwlskBdnQ7hIf7HVhGSPUUOiptVv0qh0pLrigA UvSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JZTA7sEcHuVqwTMiR1b8+prdzq1UFACrZShtnQ4d+7c=; b=juLuSIxIMOEd0cT7kyQYYSsnOeFxy+EaQYWQ6Y4sPnXQk/OOpKwXK00V74N+jjpUY/ xHLNss8AQo8YRxYSFU4jNB/Iz108UZfNdaU7vW5KDbjG58OEVVrIbkqrWJZz04xBykQJ l6HPgwuAi/X25wrQXYfAzK1KOQU5/5kNx3BmMuIfxaqX2h3oNSe40z+6PdOgLuaWXKnK dItjKfwKFDiy0BGmOSquy69Ism8S7qTTRM4aN5ElJGojLy+hVYh+E3tK1r7X8xyvrS75 M/N8KNsvOTtHMlFgmynydhbyOokPLjajtJPBeM8+FaVEAzyJw2N4qgCLzLbOkUIjl6zs YtfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nJ9Uke5N; 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 d10-20020a170902854a00b0016d9266278dsi525815plo.309.2022.07.28.03.01.04; Thu, 28 Jul 2022 03:01:20 -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=nJ9Uke5N; 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 S235289AbiG1JQw (ORCPT + 99 others); Thu, 28 Jul 2022 05:16:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234498AbiG1JQu (ORCPT ); Thu, 28 Jul 2022 05:16:50 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAD822ED61; Thu, 28 Jul 2022 02:16:49 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id v17so1409899edc.1; Thu, 28 Jul 2022 02:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JZTA7sEcHuVqwTMiR1b8+prdzq1UFACrZShtnQ4d+7c=; b=nJ9Uke5NT0UcAlgmdam92O+ZHX2NpLHhczrE0gUcNOCPMfzHGIOG9YocdeyQbtoLTz 8vjMnEobYzSP4ERrc5FipEB+I0Yee9TZ5EMZPrOH8JVPwaRdWMtoGWC2ppPvSB/JjSzc 3FUj3EnN59v4hYK7Rbqh+jrEYCtphYZq+MPIxesSUPBMGalYZOlP+QBweYlXo89+IzeL PJCH2sKt8kRenCqbt9OFy/uuwla5bRYEYhFDzfqJLiX/RW35dOKMQJH54+kaoKFLNwIm 3N1uBYEO5VOSgrXe+hx8fAfhezbA8yytLn+H2hXEuzqqx9YS2e5/EgY4d56tRdliWFaB FKbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JZTA7sEcHuVqwTMiR1b8+prdzq1UFACrZShtnQ4d+7c=; b=k77y6O4WkpHfe1xGBdlT84UQf1t7btP7E/SxQxaN65Cx9w8fQWHHmqcAqY9CTxsWzJ 1qZUVewNyj/eskth2/LZDM3W4wmmHKUHQz1HMln6Zn6EtTfSihABo30UPC4baGtzyDC3 h/oJaHuNgkcqWjTW1qPVync3VQeQWrt1vbwxGQsvkfXcXu+6fah8ZPjQ2yd4qcYC3OCa o8fwzd9r1Xc4vuveGrkpcxCuOYhaldbQpOZNRvFChUFM6vE6ZEbtKicvr9shOaycXIFI Lqp/iVaAE7su1RxRXFWFwtbzdd9f6xsW12Geg7eLO5kaa8lNRCUdJggKT9vKJbpDAlfE 7azg== X-Gm-Message-State: AJIora/UbRBKCDXUPJc9LC5938w2biCBw2+4hRgIrPI5FZQ5cZt1wZmh jdILDTE+XfNFXn08APhP1tY= X-Received: by 2002:a05:6402:27c9:b0:43a:d14b:1fa5 with SMTP id c9-20020a05640227c900b0043ad14b1fa5mr26427584ede.245.1658999807913; Thu, 28 Jul 2022 02:16:47 -0700 (PDT) Received: from skbuf ([188.25.231.115]) by smtp.gmail.com with ESMTPSA id u1-20020a170906408100b0072fa1571c99sm190099ejj.137.2022.07.28.02.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 02:16:46 -0700 (PDT) Date: Thu, 28 Jul 2022 12:16:43 +0300 From: Vladimir Oltean To: Marcin Wojtas 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" Subject: Re: [net-next: PATCH v3 6/8] net: core: switch to fwnode_find_net_device_by_node() Message-ID: <20220728091643.m6c5d36pseenrw6l@skbuf> References: <20220727064321.2953971-1-mw@semihalf.com> <20220727064321.2953971-7-mw@semihalf.com> <20220727143147.u6yd6wqslilspyhw@skbuf> <20220727163848.f4e2b263zz3vl2hc@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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.