Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp651786pxk; Wed, 23 Sep 2020 12:19:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlPgOHCCKRaEtPlH1QInyTbO5qFgXRrl1ZsoaX+j0lQwBesJclLj5bB6V/VFEWU9XPQa8P X-Received: by 2002:a05:6402:1356:: with SMTP id y22mr878791edw.110.1600888776432; Wed, 23 Sep 2020 12:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600888776; cv=none; d=google.com; s=arc-20160816; b=hcu0sXUr2ekwyPLBV/DoWfQp2TRlXCEWXgqECfJ+EbI5K8dQjlzHXtnAvru1d2eExA 4Tg9Tm6s8Vhap5HjxdMubrnaxzmcCTegkU0UrwTB+HmOUv/vbq31xC6v7CdvRxA9eve4 5dzfMu4wgYOGCOQgPeUr2hFXMh658A8TjR/bQMvnOZuBgrH+WoPOlVeGCxFlsYJru6Fj n9F+7jMymMmcqkVwbG2Vh7ovRn2rY/bBbVUaTbiUlrdVy99b/QTOhwilkR8IyGkI43jH ShzyjEbYAhYxvMpWE36Rqcpxor8/Wdumetk9KS6DkyVcPAo92n+tyUaPYRa/oPYCYa10 kYlA== 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; bh=ZDTNi8cmkYSle5xTMFTbLNntkspAObFJXaLOElhviiM=; b=jhq19svOqEdQgHlhDl13eejl7mjGwYYD9VXI51ylCV4jGbyJxLa66b0HM858CfS3eH kse6t34liSHywGigGw2Y0QOhTT+C6mLrjAGmMyX9lgJgyigLoeRzQ+/aikFswVvoOEAF PBt5qJdf84Pg6dfhRhSG7zoTBVgNkpTvebnAeJamAKI3acyWuI8K9xvt1b2gbxJAwLq+ DQ9Sr6Kf2LBUq7nSpX1iHsjwcXestHRMrQhygovxFQoo6aGejLc1f1JCw9N5HNxCNxR1 9zD6L1h6ypaRWKUFkwh+MXFCaOx5IFLnTwuBo+dJTpNsnKk/sWL2ayLoB6HXtPz2YN3t iiwg== ARC-Authentication-Results: i=1; mx.google.com; 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 mb10si579713ejb.35.2020.09.23.12.19.12; Wed, 23 Sep 2020 12:19:36 -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; 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 S1726732AbgIWTRj (ORCPT + 99 others); Wed, 23 Sep 2020 15:17:39 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:51750 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbgIWTRj (ORCPT ); Wed, 23 Sep 2020 15:17:39 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kLAGj-00FvC2-Ls; Wed, 23 Sep 2020 21:17:33 +0200 Date: Wed, 23 Sep 2020 21:17:33 +0200 From: Andrew Lunn To: Stefan Riedmueller Cc: Fugang Duan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Hemp , Jakub Kicinski , "David S . Miller" , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] net: fec: Keep device numbering consistent with datasheet Message-ID: <20200923191733.GD3764123@lunn.ch> References: <20200923142528.303730-1-s.riedmueller@phytec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923142528.303730-1-s.riedmueller@phytec.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 23, 2020 at 04:25:28PM +0200, Stefan Riedmueller wrote: > From: Christian Hemp > > Make use of device tree alias for device enumeration to keep the device > order consistent with the naming in the datasheet. > > Otherwise for the i.MX 6UL/ULL the ENET1 interface is enumerated as eth1 > and ENET2 as eth0. What is wrong with that? Ethernet interface names have never been guaranteed to be stable. You have to be careful here. Have you reviewed all the DTS files to make sure none already have aliases? You could be breaking boards which currently 'work' because the alias is ignored. udev is actually a better solution for giving the interfaces dependable names. Andrew