Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1295324imm; Wed, 15 Aug 2018 15:08:10 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyeFWZ2xZlg7E8sSZd5uhNNb1G3lI+/O0MT5karO8X8TbT9Vv/FG1ads9GaPjPpu0jD+hAw X-Received: by 2002:a62:1c13:: with SMTP id c19-v6mr29462614pfc.148.1534370890555; Wed, 15 Aug 2018 15:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534370890; cv=none; d=google.com; s=arc-20160816; b=e6pHWnLiGcWzOSdJFwW6L8x/3bM6uYH1OXPsLha1yeZHRdir8UHWT3io1o2ayjheC0 u/+DWK94AI1vGUeFDyn9zqqoxE3li8H4aiAzOLXZPF/3rZpPzYHiOF4yK4vX1BTAwMyl khJeXYH9Ws2CogcQS/DMd3+clPlT18r7GWfiyKvQVproa/7oDwvsuYPEDbRcUO/zWepT 8OFA/HZuLpwVsU8ktrRNFocLTFNidZBMApx8ABRHZJUwuf93oxMEASSI/wMgqrE/+Ah/ BKOkSnHtWAaSOuDU4AQjs9zW/UlyLuDKN8vhD1V5J3u03zAunn4f5fZnu5Mn2am3+Fco F4Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=dQvEB/tsP4+bPuG89p4QF0G4FGRFCcSFM23knCCQyNo=; b=CyH5MhwWeuhIOCeOMYJvIpj2YYklh/xsjziTyQEG8B1oNH8Ob6JqLO5fqDGXZRkqLF 9mVhlJjDsCV0xrU20AA22G74XcmdBvRxVae2JDez59IZAg8Kb7tZvo84bpfTgnLlWzSa 56IoVkYcCxrScR/6ve9aQngwyM/gcW4uBFtEzyYHsCnveBkRoeflC+x2TzvKKxka3oaU sZ8KxFzz8zhX7r/wug+2qfDp6widNZj4B5jXBf/GYmhndgqf5GcS7kq0XsiFM/CGZ9jC bUi5A/VMBhw/BuyA39jvz7XHjvtZMkuxlK/7IcHdPHNOAGKz56lH8kIWwuRc4Z/ZGxSO 2+BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H2oqPDja; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18-v6si23080378pgl.364.2018.08.15.15.07.54; Wed, 15 Aug 2018 15:08:10 -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=@chromium.org header.s=google header.b=H2oqPDja; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727662AbeHPBBF (ORCPT + 99 others); Wed, 15 Aug 2018 21:01:05 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38345 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727000AbeHPBBF (ORCPT ); Wed, 15 Aug 2018 21:01:05 -0400 Received: by mail-pg1-f196.google.com with SMTP id k3-v6so1081220pgq.5 for ; Wed, 15 Aug 2018 15:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:to:from:in-reply-to:cc :references:message-id:user-agent:subject:date; bh=dQvEB/tsP4+bPuG89p4QF0G4FGRFCcSFM23knCCQyNo=; b=H2oqPDjaiVZoqYS9gL5IN0XpecmPGdRaKuDbcdGDj0TnwxPWLYOpTRFGyv0JTzbsfQ hubPwVsWu+fNim1A6iM5R2UqtzrfpPXOkTniXCBbJdBxWZ4dbWm1vJ5Yr4k7ENx+RTSO ZZngMIT09ZNXPok9ocHDCdxtKHLsqHfbpUEgU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=dQvEB/tsP4+bPuG89p4QF0G4FGRFCcSFM23knCCQyNo=; b=buJnMFIB/3/eMpLr1lkhR8V/Jt4Xz57gTHX7+48AfUwKcTey4ODC8/XzLFlLfau9ip 4AjBrHtpTzruur27yYo55CzjcOy3KLP7PrIDPNO/rW65K/ho1+qRcbJ9TO/ZTgOCpMxk nVuETciyo7PysLx1ZL5K0iq/V+pbqx5h0Y7cXTQlp2M5sNDmRgWQxwutN/DB1nN3W/Qj 0Afo8dTD69Bql6aQ3p+dckoQSbgY1ZpuJB6BrjmVW1q6JsxsIKhcs9sIf6QzBX4xI1EM 3npo3mTcK+RjPTWcCffinjhCl7dsk37ZRRBUUbPYT1U111mup5JrmmRPaQIbHzDPPoFY 0gug== X-Gm-Message-State: AOUpUlGxlmSJW44ldL4ZI1xjEpV1WyHSQlVmISdk5A/XayBPGvInCbMn WecCIA4GRIyXPrRm9q/efH/ROw== X-Received: by 2002:a63:9856:: with SMTP id l22-v6mr26969339pgo.208.1534370822053; Wed, 15 Aug 2018 15:07:02 -0700 (PDT) Received: from localhost ([2620:15c:202:201:7e28:b9f3:6afc:5326]) by smtp.gmail.com with ESMTPSA id g5-v6sm27802573pfh.63.2018.08.15.15.07.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Aug 2018 15:07:01 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Brian Norris , Florian Fainelli From: Stephen Boyd In-Reply-To: <20180815014436.GA17200@ban.mtv.corp.google.com> Cc: Rob Herring , Greg Kroah-Hartman , "Rafael J. Wysocki" , Andrew Lunn , Dmitry Torokhov , Guenter Roeck , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Julius Werner , Brian Norris , Srinivas Kandagatla References: <20180814223758.117433-1-briannorris@chromium.org> <20180815002204.GA258561@ban.mtv.corp.google.com> <20180815014436.GA17200@ban.mtv.corp.google.com> Message-ID: <153437082071.28926.11684780766239178367@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [RFC PATCH v1 0/3] device property: Support MAC address in VPD Date: Wed, 15 Aug 2018 15:07:00 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Brian Norris (2018-08-14 18:44:36) > Hi, > = > On Tue, Aug 14, 2018 at 05:52:49PM -0700, Florian Fainelli wrote: > > On 08/14/2018 05:22 PM, Brian Norris wrote: > = > > >> Also, aliases in DT are meant to provide some stability. > > > = > > > How, specifically? I don't see any relevant binding description for > > > aliases under Documentation/devicetree/bindings/net/. > > = > > Indeed they are not, likewise, we should probably update devicetree-spec > > to come up with standard names that of_alias_get_id() already consumes. > = > A quick grep shows we already have divergence: both "eth" and "ethernet" > are in use. > = > But anyway, would the idea be that you just put 'ethernet{0,1,...}' and > 'wifi{0,1,...}' aliases in the /chosen node, then require boot firmware > to insert any {ethernet,wifi}_mac{0,1,...} into the paths represented by > the corresponding aliases? I suppose that would reduce the problems with > (1), but it still doesn't really help with (2). Yes. Aliases are the way to do this. It obviates much of this discussion about finding things in DT by directly pointing to the node the bootloader wants to go modify. > > > = > > > And finally, this may be surmountable, but the existing APIs seem very > > > device tree centric. We use this same format on ACPI systems, and the > > > current series would theoretically work on both [1]. I'd have to rewr= ite > > > the current (OF-only) helpers to get equivalent support... Where does it go on ACPI systems? Does the firmware stick it into some ACPI table by reading from VPD?