Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp42862pxy; Wed, 21 Apr 2021 17:57:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSLIME9VyXnkRMthDMXAcky7PU4MZWY8cvgspzpYD+4bdwZvWCiqAUCOXQjklfM6NCnzZE X-Received: by 2002:a17:902:8307:b029:ec:86a4:90fa with SMTP id bd7-20020a1709028307b02900ec86a490famr696860plb.22.1619053052157; Wed, 21 Apr 2021 17:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619053052; cv=none; d=google.com; s=arc-20160816; b=LUbf3b+awVYuu1SVHU/N6UnG6SANuCsbZOvLBJClaq+XN/D6Ogzgk4D4ZK062jAS4s PDSoISbJ1yqZTNgk9ZSMbJGybEeZ1OkvS5l4QlXmvdMSJ/iWa6W4S2RLI3ENOUi1DSXC Z08JbUeabI7QQ+BrDA5OdCwpC3qtj2pntmN+KCHJDDxRqRR4vp7vTekPijHJAvLyMIT7 gyDkjYjWdE9v+7j7KVloPl/qXfktJwltiIDFf8DzdeDVl4Oi1vrkJtEANKVTszT/r6FT KQ3zNR2QLbwgrK8zu+6CiiJa8aS/GlXEcsC11JVwmTLuMV+cVqsWVrQvkqlBLL6yadzn HNdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:reply-to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=40y2ogTwZHjVV2UFcvvi314l227rNstpubsLcSaRYGw=; b=aQsXbIPTolpOKdXyPysLvWQ+JgeQDVxCgzzxfU+Rd247GTzEb2YRwMNixHhZ8lGbVw XXzEtZufuA3g65R0CORjwEefQ2e75/jx0Co1fcuGlqeunE70meLICJ1zRzdIr4MckAhL 4gwIIvt6+jXkG+oAOXjruD9MMXWwDZgJA+B3wtJJGS3n7csQbrwB6W9F2iPUC2uo1BDj chG7vyhA3o9KM4uk1ojnrlxzg8rzRIxkUTKOwIfV+fk8Srw1NzYuV8lWDl71IuZp+wpA /nT2bYXazUj3u1ZwWbphShzJWfGMRSAPtAN4Ns0yVp5cXfc+Cka7xdM1jBwoa0DyhC2q qOsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=RD4rwJLA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k15si1492917pgt.20.2021.04.21.17.57.19; Wed, 21 Apr 2021 17:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=RD4rwJLA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241440AbhDUQtw (ORCPT + 99 others); Wed, 21 Apr 2021 12:49:52 -0400 Received: from mout.gmx.net ([212.227.15.19]:49523 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237358AbhDUQtu (ORCPT ); Wed, 21 Apr 2021 12:49:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619023715; bh=40y2ogTwZHjVV2UFcvvi314l227rNstpubsLcSaRYGw=; h=X-UI-Sender-Class:Date:In-Reply-To:References:Subject:Reply-to:To: CC:From; b=RD4rwJLAE+hx8dc2j+xXELvDJe44VQWdkz6RArOIzrmoxQHmULbh+wDgIL1BFhg3Y KZNPcHepnC4Jae6Ppw6bBoENc/M9Tk6xUK7/zZwALhLXB607ZmPus9SyeZ7oLxjauE 7tX9N4UBHJ0Ch9U1GjJh6U2WtwVjpS3HjlOUOcFA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from frank-s9 ([80.245.77.133]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MwQT9-1lJ65W2iwP-00sLhi; Wed, 21 Apr 2021 18:48:35 +0200 Date: Wed, 21 Apr 2021 18:48:28 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: <20210419154659.44096-1-ilya.lipnitskiy@gmail.com> <20210419154659.44096-3-ilya.lipnitskiy@gmail.com> <20210420195132.GA3686955@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Re: [PATCH net-next v2 2/2] net: ethernet: mediatek: support custom GMAC label Reply-to: frank-w@public-files.de To: linux-mediatek@lists.infradead.org, Rob Herring CC: Ilya Lipnitskiy , "David S. Miller" , Jakub Kicinski , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Matthias Brugger , Russell King , netdev , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , linux-arm-kernel , "moderated list:ARM/Mediatek SoC support" , =?ISO-8859-1?Q?Ren=E9_van_Dorst?= From: Frank Wunderlich Message-ID: <278445B7-727F-444D-8F5F-986CAD38BA57@public-files.de> X-Provags-ID: V03:K1:i4lFH21GXNNZAau9Nq++WTeXreXX1sfRjeshPFKYIVVtlsNV0e1 IMeY+l/cJEiY5tCksT+kTXePvUQkmN3Rwevzn/muTwx8SeR6zdgtVBMrMoYlLr4JS637SG0 SKZ13gCYiTkam5Zl0Wz3brEPXaqN7gDh/s5x6vzPFue7gDkKI+UNBYFUmeF1+9R+LhIrnfF 1ytvCuGAUq6JMwbIrTA4A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:o9viHyDaucU=:0rlcnz0e7JdvUX3oF/E7p9 J1/G+8uMTzTLN6y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OlKeKKu5hoP/Tkue4KoO/HXrs6XfLYOU3iCn1rU6uos6BkYB6m4au+94Mh4XBd+oa2viZse 4P3lc49bw1wYiPKQ8YsTB78S5RVzV4jlbXPhl80YuhNgW0JYl+XT+iOfavig1jjHyia2vLL/A 3IJFskSsr1P3MJQIA Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 21=2E April 2021 18:12:41 MESZ schrieb Rob Herring : >On Wed, Apr 21, 2021 at 9:05 AM Frank Wunderlich > wrote: >> >> Hi, >> >> for dsa slave-ports there is already a property "label", but not for >master/cpu-ports > >Is that because slave ports are external and master are not? If so, >that makes sense=2E In my case gmac is internal,yes=2E=2E=2Ei don't know if ilyas device is si= milar=2E But in a previous kernel-version the gmac of bpi-r2 can be passed through = mt7530 switch and gets available external while bypassing dsa core=2E Here = i wanted renaming of this port (gmac1=3Deth1 mapped as wan-port,while gmac0= =3Deth0 was splitted by dsa switch driver to lan0-lan3) >Seems like it could be possible to want to distinguish port types for >reasons other than just what to name the device=2E Better to describe >that difference in DT and then base the device name off of that=2E Interface names should be not only numbering as they can have different me= aning (wan vs=2E lan)=2E >If you just want fixed numbering, then 'aliases' node is generally how >that is done (either because it sneaks in or fatigue from arguing >fixed /dev nodes are an anti-feature)=2E There's already 'ethernetN' >which u-boot uses, but the kernel so far does not=2E Aliases are not yet used as interface name=2E=2E=2Edo you want this way (u= se alias name as ifname)? imho we can define multiple aliases to one dt nod= e which is imho not the best way as interface can have only one name, and i= nterface is created feom target node from where the alias needs to be found= =2E regards Frank