Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp52878imn; Wed, 27 Jul 2022 15:01:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sivwTD8ZdfLx7tMLX+kslWA+Lvi2KRK0xtY5p4iIEFQoSx6/jku+VwKyLVCIFc5Wnfq/aE X-Received: by 2002:a63:451e:0:b0:40d:c602:4e with SMTP id s30-20020a63451e000000b0040dc602004emr20618242pga.453.1658959292898; Wed, 27 Jul 2022 15:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658959292; cv=none; d=google.com; s=arc-20160816; b=UbBOINiZLoww2IyBt2SdJOh34rGB40LEfJJKcOg4WQwcBvuihr6RdMRQnudaMwwBOj kuPIbi/4LVSG5oDWoEiDt+0RC5D5alPAdmuNjqA+1xjsfaP0cmE9ywulVIXRuZO0laKc uJUsAQtczlOl021SaCzYhh8arXWOELjBDv6/kh2LRcFazzTSytcW+5nT4qHHGcARHxfC /4YQab8UpnOHyR/b/m0qj4Lwi6I4mZr4WF61xBIwGqzYGV8pESrYk1WymJ9/k3GrVF66 CzyK5ugHZqI135OD3XE5/MGtC7/Gvwdr/3W7/2nauUGtl1WPzj2evsf2oVJ62+OjttY/ 5Siw== 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=dHk/nIZIen1AdZIuJjh0VLKLPwk90ODmGxgfoYUv0pM=; b=XAJ6wPyLMDNQT3ZqegNLTq87viLL3LaDMMQp6ab3kMP4Y6FpyXQl69GeuuwZcsXjLY bhEEH/0a8Ba7KHH+QCW5sksscs9LuNNQycu4cgD64nivXkw6aDCOI48LONhiRnRpvUaT A/Jbhy+kya9Rwq6RQzfjgdFU06YKYYNV2ozf0fDv+nRm9OZSAclPJYfL2403s6DuNBAV x+gyDHriXZX5onWPJtgyUfgF3U0d/I1F47rmsoEAG150BB7ztHEBgRXIia3KaW5Xdtjr 4Nz1s+CfLSgaePBdbxDs4GkEHZQV86dnmdQCsyqZUlO1E+mO/wXTWgPe5bPsfov1MF19 1Ynw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NUintwL8; 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 l7-20020a63f307000000b00412b40ea629si20659243pgh.502.2022.07.27.15.01.15; Wed, 27 Jul 2022 15:01:32 -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=NUintwL8; 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 S234563AbiG0V1h (ORCPT + 99 others); Wed, 27 Jul 2022 17:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiG0V1e (ORCPT ); Wed, 27 Jul 2022 17:27:34 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCD05C972; Wed, 27 Jul 2022 14:27:33 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id bp15so33736524ejb.6; Wed, 27 Jul 2022 14:27:33 -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=dHk/nIZIen1AdZIuJjh0VLKLPwk90ODmGxgfoYUv0pM=; b=NUintwL8++PesHsw3v01wuUfAC4+ztcOw7Zb1LqLX3JL7NNi58TqpeHWbfZ7vVY4j6 HNweitKxjbV7snOL9vBxB09RXpcmFxl/ro1TGnC9vNHRrCn4Nzyip9vERGIvOBZE5Flg HJc0tmAMEQyjG9JTsxhqWOJQ0IDLMc32g4xCTxn0jFuknDyCGSEprBTNokSfT6+J9d2g Q0Viwkn3ckuATa0ywSJJ/tSp7lsedI1KyfuVlH0Z1iWifwYf44WRu0ZeM5cvs7NWfVfG JCTueRN835o9aA1tfpzKaS9iZi6jNMqkyfPfLaxwn/tBpDbY3mrHfRPeYZS4II7ReX+x dQqQ== 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=dHk/nIZIen1AdZIuJjh0VLKLPwk90ODmGxgfoYUv0pM=; b=mB9Kgk6POtp+MfWGsQptycI2bKtsm7dh9Mr8h2YLfpUcF+lMk9QoKCfMeUDTdgO/FK XCjss8w6MAExu7i6KSx+g/cWadIqK6Nkl7O8AHODRG8qS8hf3nv2rscWur+RThJjBRu3 4P4JrlJK8b3Y2RSfRVmGepnKhXdYUTozUlRCQXRLbxh0Y+059eNZqiJ5nNy/e1tUOpj4 eQnRAq4kUGeT+zuMJROguFhpj+D1I1zbOO2XgqsAyCsi7KzWCtjx/LMEeimt7KYuCGN3 mvFln38Ao9lsiBMpp+xvFOoXIBNUMogrEqnT2WyHPbVtbiIlOU5WnqcCfzkuYL2gkgzV ouvw== X-Gm-Message-State: AJIora8TQBD8TMYP/mvuIz6fp4hzA5+IAUg4+YodT1q6zlLb+/zm/3PF FgC5EnWxxAB2TkmfWLt4Twg= X-Received: by 2002:a17:906:93e8:b0:72b:6923:a0b9 with SMTP id yl8-20020a17090693e800b0072b6923a0b9mr18572531ejb.244.1658957252154; Wed, 27 Jul 2022 14:27:32 -0700 (PDT) Received: from skbuf ([188.25.231.115]) by smtp.gmail.com with ESMTPSA id y3-20020aa7ccc3000000b0043577da51f1sm10888831edt.81.2022.07.27.14.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 14:27:31 -0700 (PDT) Date: Thu, 28 Jul 2022 00:27:28 +0300 From: Vladimir Oltean To: Marcin Wojtas Cc: 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: <20220727212728.hgf7vbasmup4i2il@skbuf> References: <20220727064321.2953971-1-mw@semihalf.com> <20220727064321.2953971-7-mw@semihalf.com> <20220727143147.u6yd6wqslilspyhw@skbuf> <20220727163848.f4e2b263zz3vl2hc@skbuf> <20220727211112.kcpbxbql3tw5q5sx@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220727211112.kcpbxbql3tw5q5sx@skbuf> 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 12:11:12AM +0300, Vladimir Oltean wrote: > The 'label' property of a port was optional, you've made it mandatory by accident. > It is used only by DSA drivers that register using platform data. I didn't mean to say exactly this, the second phrase was an addition through which I tried to make it clear that the "cpu" label *is* used, but only by the drivers using platform data. With OF it's not, neither that nor label = "dsa". We have other means of recognizing a CPU or DSA port, by the 'ethernet' and/or 'dsa' phandles. Additionally, the label is optional even for user port. One can have udev rules that assign names to Ethernet ports. I think that is even encouraged; some of the things in DSA predate the establishment of some best practices.