Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp66500pxy; Wed, 21 Apr 2021 18:43:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4Kcw6ZZpPbY3ZoNWv3nHBX96NNXxDL33PnN95H+ChT010UUyQIOc8WwslG4vBILXW+Fy1 X-Received: by 2002:a63:2211:: with SMTP id i17mr997573pgi.431.1619055792300; Wed, 21 Apr 2021 18:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619055792; cv=none; d=google.com; s=arc-20160816; b=P6px4hX1H5Ym9VRPUJCoeYmfVdW5+e+AWwapuMR1cEXNcs+dvXS0/6ZITTn6QaDXuJ fDVXiqT7baer9GziuvOlKFVBEVo8tKWC9BnnlJVhQXu8r7W0rMSxAIYXZD4T3ZFa9yHD SpbiIIuP5o1UU/n11ofYX/KlKD8wQnkqfOlKFq9x1Go1X4W4UHz1w/0gkmWN+8t3QrPX xJWyhzMcVe8BC9EjLqYKiH1oBkgYYCgdCq6/lW8UvnkqhU7H2YU12RxDPK0MGaWIXy10 /vr5M32QCQsSeI/erD071JtFssL4xEYvVCpaWGnnbBHklpeK17MWryLkIFZo5QFk5zJX W8uQ== 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=8jqI6aiH4hwiHUgcEN1wRksGRNJ3OFRgxcK50mKzTYw=; b=yTOOP1Ui7GyPvoJZejq4Xhbo94tQajfw4zh0CPGAMKKUF+0ymKv6hH4FZ7B2+tgnzr b67XXy92dB9DPJibrO7qXvoPYIofih02WWBb4togDeTBPEnsY2Cg/QtKbyY4g03DY5u5 tPo8Mh+EBhUkp3PdEasCLQg//NJ8FQFEdYq2iayAXHK6UZ4GdY4nsZla63y156CU+Rox DctuCxu+2x/4vzH9IRRzRun2oQTUZM9WbnF/vBN0ildB/aqLzZQErwtLiGaVOD8ImYAL 44aLfN4DGh6n57HBL0NLsuQlaJHHVKm4z+7SQN5EgQgpQpaq/0VVpdXKD9ma7wlN/Kvh +lcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fPQcWTXK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si4568603pjm.40.2021.04.21.18.43.00; Wed, 21 Apr 2021 18:43:12 -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=pass header.i=@kernel.org header.s=k20201202 header.b=fPQcWTXK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237561AbhDUQNa (ORCPT + 99 others); Wed, 21 Apr 2021 12:13:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:50122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235591AbhDUQN2 (ORCPT ); Wed, 21 Apr 2021 12:13:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7E3D961450; Wed, 21 Apr 2021 16:12:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619021575; bh=8jqI6aiH4hwiHUgcEN1wRksGRNJ3OFRgxcK50mKzTYw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fPQcWTXKg4IZRaXn4/53Yl4hzHzapNVbn+DLd1wwgWAjBax7AgkREfPjUsErp4H3M jNmMiZ5rPN9f1ZGfy30vQvByCVwwkKhIMSoFglUgUgJETzjLcpNVHGzU+XAWdC4Sq2 4DajKoc79CxkU0iCv5gL5N+Oo6N2h9YonTOrOCgvGEvTrnBpnh/iYEVV6atDJlFoWX gSynMO0aG14h+kWt17RQQqyFQ10/83koXf9icg5K3RmFoJWADw2q3iAK2gxcNtC56f GFTU+ScXneP80QZzU+z0fVZ8zZew4jGc5g/HZAcQJfxbOgi57+gJewRRfIY26ho9KK CHpSqL7gZO/5w== Received: by mail-ej1-f44.google.com with SMTP id u21so64362697ejo.13; Wed, 21 Apr 2021 09:12:55 -0700 (PDT) X-Gm-Message-State: AOAM530bJlJvZpMkxBK3AVWKj9uFKx8Fx4d5R4KXihtbcTxn3RbzsQXN CEtw2uwI1AeF03LX428vpexTQbagimZnHiV3/A== X-Received: by 2002:a17:907:70d3:: with SMTP id yk19mr33344448ejb.108.1619021573865; Wed, 21 Apr 2021 09:12:53 -0700 (PDT) MIME-Version: 1.0 References: <20210419154659.44096-1-ilya.lipnitskiy@gmail.com> <20210419154659.44096-3-ilya.lipnitskiy@gmail.com> <20210420195132.GA3686955@robh.at.kernel.org> In-Reply-To: From: Rob Herring Date: Wed, 21 Apr 2021 11:12:41 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Re: [PATCH net-next v2 2/2] net: ethernet: mediatek: support custom GMAC label To: Frank Wunderlich 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" , =?UTF-8?Q?Ren=C3=A9_van_Dorst?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 mast= er/cpu-ports Is that because slave ports are external and master are not? If so, that makes sense. > https://elixir.bootlin.com/linux/v5.12-rc8/source/arch/arm64/boot/dts/med= iatek/mt7622-bananapi-bpi-r64.dts#L163 > > handled here: > > https://elixir.bootlin.com/linux/v5.12-rc8/source/net/dsa/dsa2.c#L1113 > > @ilya maybe you can rename slave-ports instead of master-port without cod= e change? > > i also prefer a more generic way to name interfaces in dts, not only in t= he mtk-driver, but the udev-approach is a way too, but this needs to be con= figured on each system manually...a preset by kernel/dts will be nice (at l= east to distinguish master/cpu- and user-ports). Seems like it could be possible to want to distinguish port types for reasons other than just what to name the device. Better to describe that difference in DT and then base the device name off of that. 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). There's already 'ethernetN' which u-boot uses, but the kernel so far does not. Rob