Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1803461imm; Mon, 3 Sep 2018 09:51:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYDOHKxPUg8q59wnr5+j4yi3Gxsw0Y/CLHZmfWyDsOSeE64aBRdxg2sIxjjGB5Bmrto0VmA X-Received: by 2002:a63:dd09:: with SMTP id t9-v6mr26007118pgg.370.1535993485897; Mon, 03 Sep 2018 09:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535993485; cv=none; d=google.com; s=arc-20160816; b=ILZ+a0jx1/gWX9hGlqv6/yCByFMqKvLEOdjuqlIOuGfYBOTLwTfpDJGyCgWWPOFox0 fiHXozJwHvC9PCQFzM/6WfwXa6FER4BC0xWaVsPybgBic1rGtvZe7IoI6oSzz0Fm7F5u gKaZtf9GragTLoOWox7s5QEYrHFZds+GAp11Vjj9CBSaWSq9cMFh+h0Uoq4KyaIcAM8k 7bjWtvEIYV08FBykmd4Tyg0+VjTYpNP71a7O4HOydeIuRIWg3zAawq27Ll137Iq97whn CnRebaJBkUl3D/J8oYQ3RlLIn/mEH3SE8a5DXpiKxpHLLbcTzbYxu3Q8G72xHr9reWnb S4cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=RommV6MPNVZNRCdHq6rJS1GcONwKA1VVrobXJY5FLoI=; b=dHomYjGl09e1KRqqngCNRCDtho6MKcBasyClhmraLG3ZuN/XUNdqF/XPhKb+cw/wgg ccdMCt0VZKj1taEfrU6w3gS/SS9+CNsHKbb9udSOBXxC4Yon+YgojUEth9apMKXUhQsc NLDt7fngZu6dWGBt5qiYGHZ25G5Ej6F75IK/tAprig4wER9Vn1Wxiixd1PrQXrTutm0+ /Gvrl4gAODO+/UKvt4Oqn6P0afKgip9rAB/8MLNLkWcE2qWhK2wLm0OGLzyiakTZg8c/ SBZaY51dCto59TZykYxVX6mnDVLfkdfytztMD5/TYOdnxhE87xqwVjYIQ0V74KR/Ekuu 1VIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="E8dlA/kz"; dkim=pass header.i=@codeaurora.org header.s=default header.b=Gvj5tELY; 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 15-v6si18041454pgu.205.2018.09.03.09.51.10; Mon, 03 Sep 2018 09:51:25 -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=@codeaurora.org header.s=default header.b="E8dlA/kz"; dkim=pass header.i=@codeaurora.org header.s=default header.b=Gvj5tELY; 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 S1727686AbeICVLA (ORCPT + 99 others); Mon, 3 Sep 2018 17:11:00 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49132 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727447AbeICVLA (ORCPT ); Mon, 3 Sep 2018 17:11:00 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 009B960445; Mon, 3 Sep 2018 16:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535993404; bh=9tPWLCMSgpuieD0ARdaDYsX/uNdWnAay1fLw/f0LQos=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=E8dlA/kzWopFwr107vCpWTVU7vYizcMvKuUeTaEmcpGd3IE0+Zkf435uD8QCY8sSc R0z+GNbOG1MNR8ETa/+LRqAJT3G6jL1pDnJWttJL50cuRnLfS5O+SArk/txNQp3Rev 53E382Wuxb/p+gi8Q4gxHx+ggnpECKc7eoHHSR8U= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-52.elisa-laajakaista.fi [88.114.240.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id AC7C760445; Mon, 3 Sep 2018 16:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535993403; bh=9tPWLCMSgpuieD0ARdaDYsX/uNdWnAay1fLw/f0LQos=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Gvj5tELYMlHvAQxIC6LIfyRt377fq1Z2nHFVCiVKF1dyO7E4HITPoI6J0NJrFcoOj GdRB7PXmz9qDbKmUSrJ3bz5fJwpymTfdkjAjpnYQw3ig475NDF4ucDbcd4YyHmI6xV 4r9Hn63OIYUeGm7v3Hfa27wZ/UVEsXTH0lcg2UjM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AC7C760445 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Brian Norris Cc: Arend van Spriel , govinds@codeaurora.org, linux-wireless@vger.kernel.org, Linux Kernel , ath10k@lists.infradead.org Subject: Re: [PATCH] ath10k: retrieve MAC address from firmware if provided References: <20180810233948.144792-1-briannorris@chromium.org> <5B6F2A47.7070502@broadcom.com> <5B71CDFB.60408@broadcom.com> <878t4qftnm.fsf@kamboji.qca.qualcomm.com> <20180829001453.GA173345@ban.mtv.corp.google.com> Date: Mon, 03 Sep 2018 19:49:58 +0300 In-Reply-To: <20180829001453.GA173345@ban.mtv.corp.google.com> (Brian Norris's message of "Tue, 28 Aug 2018 17:14:54 -0700") Message-ID: <87ftyq8r0p.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Brian Norris writes: > On Tue, Aug 28, 2018 at 05:33:01PM +0300, Kalle Valo wrote: >> Arend van Spriel writes: >> >> > On 8/13/2018 7:14 PM, Brian Norris wrote: >> >> On Sat, Aug 11, 2018 at 11:26 AM Arend van Spriel >> >> wrote: >> >>> >> >>> On 8/11/2018 1:39 AM, Brian Norris wrote: >> >>>> Devices may provide their own MAC address via system firmware (e.g., >> >>> >> >>> You got me confused by using just "firmware" in the subject. >> >> >> >> Yeah...I started by writing this patch with device tree specifically >> >> (of_get_mac_address()), and then later found that there were generic >> >> "device" helpers for this, which can assist with other sorts of >> >> firmware nodes. It was easier to put a name on a device tree patch >> >> than on a "device" patch. I suppose "system firmware" might be a >> >> better description? >> >> >> >>>> device tree), especially in the case where the device doesn't have a >> >>>> useful EEPROM on which to store its MAC address (e.g., for integrated >> >>>> Wifi). >> >>>> >> >>>> Use the generic device helper to retrieve the MAC address, and (if >> >>>> present) honor it above the MAC address advertised by the card. >> >>> >> >>> But this put me back on track ;-) >> >> >> >> Let me know if you have a better way to clarify. I can resend with a >> >> slightly modified subject (s/firmware/system firmware/), or let Kalle >> >> do it, if that's the only thing to change. >> > >> > "system firmware" substitution works for me. >> >> What about: >> >> ath10k: retrieve MAC address from Device Tree if provided >> >> Because from ath10k point of view we use Device Tree functions and don't >> care if it's delivered by pidgeons or by system firmware :) > > I don't care too much, but note that Device Tree is a loaded term, > usually referring specifically to a method of describing system hardware > via the Flattened Device Tree format. If I were specifically targeting > Device Tree, I'd use helpers like of_get_mac_address() instead. (The > 'of_*' prefix is a relic of OpenFirmware, an early firmware > implementation that used the Device Tree format.) My bad, I read your patch hastily and somehow understood you were using of_get_mac_address() but you were actually using device_get_mac_address(). So I'll change this to "system firmware" as originally suggested. Sorry for the confusion. -- Kalle Valo