Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7173920imm; Tue, 28 Aug 2018 07:34:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYFAg1MwwKiMj6TN5ZPOf04thaAXsUeM9RvSn4erliTDV86NybGb8ZAel1e4h5/B4vsqxir X-Received: by 2002:a63:e516:: with SMTP id r22-v6mr1886156pgh.170.1535466878974; Tue, 28 Aug 2018 07:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535466878; cv=none; d=google.com; s=arc-20160816; b=LNBkcGkMLdxpbSLUQEQrmuxZIAkwVvF77CVo7b9zT7qOfDNfZSfyun5Kz927bPXBId JEKywDlo0nqVm02pcORpOF/0UJUy/0GdJnuxYq9iW65b7/1RQVCQRXcr/YQIRDd/NYjv cWNXs6jg1OlXMDxnPxaNDrp9zI1UVLBk9wrsZLo7JDBwaln+6Na8atY7hXHy0r1lsbuO G3e2UpC7tA12id5htcbYAng1RTWFDWIbln1Uhcq9XTq/yNE/WZ9COt+8DqB6HlegdEKb 6B1vPEd6LjOdzjClL5olWNtGGqumE12AQZZsE06dpXDtJK4DXfR93Q4nnREX+JbzU2XW d/cw== 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=RLooDNibDSVYtvelARI49osUhzpOPr+WevZDkyPol7Y=; b=bSK0jVYtFTyKC48vT6MrzmzhILBZ4fgEMGiB4H7dUAnOIyj2iNO8HF2Pv+HkCvLRwB 4OR/DfFq8zL2bwzJGMK94U0TyIPJcrLos27bg6rbfCnmKRt0lNmDYptLcNIwE9SoKXZ5 9dXcbRvlVlI+hYedefi0YWtjbxBtPnMX3EgYQ3PN+dtm2ML6MQ8v0XQ0SOX84leHavq1 Bozc+eRWxc0zI/uoitzsAFHOk8LFxpVRIyy9o8yFQhDg2HEh9Uddhu/75XoB5oA4ZaAd mDpcOhuIrG/JZfQenQ+SDa/DKbt6IitI3xzHbDRuLkefcDQkeoYHqFBLi3G7Yb82OnRy XP6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="aQ/OxBfH"; dkim=pass header.i=@codeaurora.org header.s=default header.b=VX1a34x4; 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 d4-v6si1122756pla.299.2018.08.28.07.34.23; Tue, 28 Aug 2018 07:34:38 -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="aQ/OxBfH"; dkim=pass header.i=@codeaurora.org header.s=default header.b=VX1a34x4; 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 S1728324AbeH1SZD (ORCPT + 99 others); Tue, 28 Aug 2018 14:25:03 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49378 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727284AbeH1SZD (ORCPT ); Tue, 28 Aug 2018 14:25:03 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1892460445; Tue, 28 Aug 2018 14:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535466786; bh=g4U5J9PguuQNhpVwCWp0SU3mmfZtzQFF8tMbaf9Bt2s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=aQ/OxBfHTpJ/Nf8WB2e+uF+y77Sg1SzHNW+huxeA8t9z9ZEGAaZ9zhqxrhVdoRvv8 BNaD37tesoV0Ik1BeFvK8zWgPiALAYcWg2X2YEpoK4LOeKXP84jkHvAZE+bxpbJ4XE Voqa0UXXoCyshe45CRw4BG1vfOS4+7SKv1RqDnkw= 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 D32656021C; Tue, 28 Aug 2018 14:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535466785; bh=g4U5J9PguuQNhpVwCWp0SU3mmfZtzQFF8tMbaf9Bt2s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VX1a34x4NUP5K36Epyrgjt8m/fFzfasghxLiHtBd+D5xIFKGMXaLeKfX59fhIbkJ7 0fgD6ITe+3N2KI+55atQWrgnB5+gz3EZTSmeEIXeu2py/6nmEMh0ymWnx0RLyeNXSf 3xWV9kiW+qYZ9u9UKIfUHsydhRxDgtbZpKiD7ur4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D32656021C 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: Arend van Spriel Cc: Brian Norris , 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> Date: Tue, 28 Aug 2018 17:33:01 +0300 In-Reply-To: <5B71CDFB.60408@broadcom.com> (Arend van Spriel's message of "Mon, 13 Aug 2018 20:29:15 +0200") Message-ID: <878t4qftnm.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 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 can change this before I commit. -- Kalle Valo