Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1756350pxb; Wed, 9 Feb 2022 03:58:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkbqrTzzS9nGXrFNHJNqBWfOb/GtGek1xOil49nkhoATMPV45ibrxLDMvFSDPp+NTFI/lK X-Received: by 2002:a17:902:bc83:: with SMTP id bb3mr1801307plb.172.1644407893765; Wed, 09 Feb 2022 03:58:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644407893; cv=none; d=google.com; s=arc-20160816; b=JvzJJCk56+BmxQzxd8eL4Q+JOiw6mcMudzT+5nZO3KsAYkF+M4DdEQiOFcjL3vUdso 8G805Ilxxgk0761c4qwJuTTDeRgH5o0G1Aglk4WT61JwnY6fYUe7tE2QNIVgr/MfGA9A MsSJTgFnchMsUaE5y4fAM6/D61EW6XnvfZFW3L0bHogpvG9RpIzJSrOgAz8kbYCBSswd DAK+bBZFyrTm95zVEfN/3SyFpmWpbwQMm5472kNvY/MfFvv+n4eGz2qtFvr0vALZhM8V cz6uKrgblJzhgkyJ1FdRZ2JWXdbax8MG+ZDtoXSAxm4JRS3yiHG/CvR4ejIfKj6Xi4II S5hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=G8LqGal/BfOK3y4L6u8PvM8UC+lNQDfMqvbD10Y9LmQ=; b=Umc7o11WCsQnNFNYN5mCS8hMRi7xmNVaU0yJ0NF/QrrFyBUNF+g9HJlHP70E6z/C7L W4UTfU3VCT98L+/aYrZFZV6fECyHzyBYYRLAGsLYgwUd+NVCl8QMsKTGesVMhn4QRP74 uFrUkEzaYM/2YpVkCjxMq643/bKc0NtGA9+LJ5dXQdPs2MHDLb0NWMn/pQYnzpvnpUKQ tYQYI8i5lGc0/cCxJxb0V0gwgd20NmVimdwbafQthF58fslFo841UjJsA+cGRtE6OExC iGFwAW9PuKB0amUFU7TsB4u0Y4nSLd52bru3pS9tR++8GhfcqZG6DCQ1YNpx6xHNvfnC b3pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eFdfQ5xG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u10si16758656pfk.192.2022.02.09.03.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:58:13 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eFdfQ5xG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 680D4E040021; Wed, 9 Feb 2022 02:02:58 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237969AbiBHLcs (ORCPT + 99 others); Tue, 8 Feb 2022 06:32:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356775AbiBHLAP (ORCPT ); Tue, 8 Feb 2022 06:00:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE96C03FEC0; Tue, 8 Feb 2022 03:00:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E8EE0B81A1C; Tue, 8 Feb 2022 11:00:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DD4FC004E1; Tue, 8 Feb 2022 11:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644318011; bh=lgU6ufHve7JlUCO/BFOI9B8QpSdLnyCpTVPTeG8N3x0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eFdfQ5xGfudSGY9mNnEZo7SUi0EYPYpK1U7o+DGAH3uISBV0ZOoqR6KKqgMmcPYEv BZaMucZRl3WH2qElqcOTZ7R0oBr2vze8l8xbJ5vLoNajpCKqauLLEhzufYa2RiEXLR jmiH+dOS87X8nsj38aVpKhZ+WiB/fimqJGGEZ1LEGK2Cql7qL85GpiUW8YgywcxLys t23ws9VQoGMOD6NUYPZcuqqC6dwrqxJ/kBnD1n6Y8OHmIGo+nQ8EJUMkPPIXhw4Hyy e+MTFaEQ0dJJGbkQ5+N+W9s51LBGal9F22rOS/wzTHKZsjpS5JrxNzAC7F+Rl8cIEf 6H8PMZz8SnAIQ== Received: by pali.im (Postfix) id D6E1FC34; Tue, 8 Feb 2022 12:00:08 +0100 (CET) Date: Tue, 8 Feb 2022 12:00:08 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andrew Lunn Cc: "Russell King (Oracle)" , "David S. Miller" , Jakub Kicinski , Rob Herring , Marek =?utf-8?B?QmVow7pu?= , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] of: net: Add helper function of_get_ethdev_label() Message-ID: <20220208110008.s7ock4pkspmulwix@pali> References: <20220107161222.14043-1-pali@kernel.org> <20220113182719.ixgysemitp5cuidn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220113182719.ixgysemitp5cuidn@pali> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On Thursday 13 January 2022 19:27:19 Pali Rohár wrote: > On Friday 07 January 2022 17:55:25 Andrew Lunn wrote: > > On Fri, Jan 07, 2022 at 04:29:31PM +0000, Russell King (Oracle) wrote: > > > On Fri, Jan 07, 2022 at 05:12:21PM +0100, Pali Rohár wrote: > > > > Adds a new helper function of_get_ethdev_label() which sets initial name of > > > > specified netdev interface based on DT "label" property. It is same what is > > > > doing DSA function dsa_port_parse_of() for DSA ports. > > > > > > > > This helper function can be useful for drivers to make consistency between > > > > DSA and netdev interface names. > > > > > > > > Signed-off-by: Pali Rohár > > > > > > Doesn't this also need a patch to update the DT binding document > > > Documentation/devicetree/bindings/net/ethernet-controller.yaml ? > > > > > > Also it needs a covering message for the series, and a well thought > > > out argument why this is required. Consistency with DSA probably > > > isn't a good enough reason. > > > > > > >From what I remember, there have been a number of network interface > > > naming proposals over the years, and as you can see, none of them have > > > been successful... but who knows what will happen this time. > > > > I agree with Russell here. I doubt this is going to be accepted. > > > > DSA is special because DSA is very old, much older than DT, and maybe > > older than udev. The old DSA platform drivers had a mechanism to > > supply the interface name to the DSA core. When we added a DT binding > > to DSA we kept that mechanism, since that mechanism had been used for > > a long time. > > > > Even if you could show there was a generic old mechanism, from before > > the days of DT, that allowed interface names to be set from platform > > drivers, i doubt it would be accepted because there is no continuity, > > which DSA has. > > Well, DT should universally describe HW board wiring. From HW point of > view, it is really does not matter if RJ45 port is connected to embedded > PHY on SoC itself or to the external PHY chip, or to the switch chip > with embedded PHY. And if board has mix of these options, also labels > (as printed on product box) should be in DTS described in the same way, > independently of which software solution / driver is used for particular > chip. It really should not matter for DTS if kernel is using for > particular HW part DSA driver or ethernet driver. > > So there really should be some common way. And if the one which DSA is > using is the old mechanism, what is the new mechanism then? Hello! Any comments on this?