Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4023831imm; Mon, 25 Jun 2018 08:29:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK1/HSKjpqNneZddWytU150z13+IXhzJsVsvSkE/3yg5EgiKMc/shxpGWMXAYCfHR5cYLyw X-Received: by 2002:a65:42c3:: with SMTP id l3-v6mr5336456pgp.398.1529940558581; Mon, 25 Jun 2018 08:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529940558; cv=none; d=google.com; s=arc-20160816; b=VklSPuCiRpA1QNYSmVPD6jHrpteiepsAMkVQtiTSSFDc3LgZOuvJTw5x7U46fnrBZ4 Is9xpm8MT/3AM1xSdNjC0eef5X1YsH16qpxBdeshuYefNIbulTfuJCLzYPcvvLMzswXm S2xrju+y+aCs5+Ul0xFFiPlXxf2X6WEXPDcenBqyhgm7jFTDKm4z8LyZ3itK9o9gaabo vjsnTEPnsor79wKOTxwAh+DPb8fdy2W1EpztHdfg4RWznuCT5Dqd8bScO2KDA05H2mEZ Q4tBAFQPWZarVZh8+IGwQ2k0+Vb2mMsRPQOHcWWHsV8R1cXAOjSqhkKT3oR8CEpf1c5D rwdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=RjrxPZoN+a5sgG0T0rFiwyXH6e73B0mLu4DSwtCwAFc=; b=q0s+1nF4+XKrcMS9/xkuVq2bdDkRELZq1VFcpPE9G3fl2VhlRbFyoV/c3e/StoCVQX uXKgjsyMg6hEk28y7nS99Fv10hmUZGKcD2EZXcrQo2QoN3mbpmCc5/aKXQwKXonMT6mu 8YRhqlq0SZMoeGX+8PsxFVtzUJXvkUSMvAZuocaj1ushvC8j6TK5vh22XkdhIXdT2qZO yOVIX7SSF7EF+vi9hi20clgQYe9HMSdJfSL1b6kegzV+XVv8j+TRqa9XUAv9XSMYnQLJ p1lsCVDmvV7J0hkpU1j7gHABt52cWJpV+Fx06iH7CbUtNXuosHHuHKxtmUaLGRk8gSqp iH5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FjiPWMOl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4-v6si14302718pfs.157.2018.06.25.08.29.03; Mon, 25 Jun 2018 08:29:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FjiPWMOl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751979AbeFYP2W (ORCPT + 99 others); Mon, 25 Jun 2018 11:28:22 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:41539 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997AbeFYP2V (ORCPT ); Mon, 25 Jun 2018 11:28:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=RjrxPZoN+a5sgG0T0rFiwyXH6e73B0mLu4DSwtCwAFc=; b=FjiPWMOlavTA5xZwTdtdr+YQCfWhogxilNS+SdHWlefA7qx6kKFcUELyt9VDC1IBuFpien5ber+Etgx00qHMvwyptvOU19IzJZt+AGLlA8hfZTUPd2yFP5bHtu0p/BXa8U86wL8sxsQ0tjli4eCSGK+LKpIUllr0Kn3+OZNs8F4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fXTPS-0003IV-G4; Mon, 25 Jun 2018 17:28:06 +0200 Date: Mon, 25 Jun 2018 17:28:06 +0200 From: Andrew Lunn To: Marcel Ziswiler Cc: "davem@davemloft.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Dean_Jenkins@mentor.com" , "andreyknvl@google.com" , "oneukum@suse.com" , "linux-usb@vger.kernel.org" Subject: Re: [PATCH] net: usb: asix: allow optionally getting mac address from device tree Message-ID: <20180625152806.GA11603@lunn.ch> References: <20180625080108.32441-1-marcel@ziswiler.com> <1529926008.12558.14.camel@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1529926008.12558.14.camel@toradex.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Now that you mentioned eth_platform_get_mac_address() on my igb attempt I am > wondering whether that would not also be the better approach for ASIX USB net > use. Looks like at least lan78xx already does it that way as well. > > What do you think? Hi Marcel eth_platform_get_mac_address() is preferred, since it will try DT, ACPI, and anything else the platform supports. Andrew