Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1887856pxb; Thu, 28 Oct 2021 11:58:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8ziA2H+wP/vOv5HZBt2DAJNIERz75GmF9ben+j13rH45PIfHrojFLmfzSiIkZqItUgibH X-Received: by 2002:a17:90a:a581:: with SMTP id b1mr14598191pjq.21.1635447496106; Thu, 28 Oct 2021 11:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635447496; cv=none; d=google.com; s=arc-20160816; b=MHBnfMKB4u+ohZN3rc1+VDrUemluOn8DVseh1OWN02FZz6U+nLserDX/Cdh0u7kgY/ UBshPQlQZqHPl3jIZal8yWgCHQVgrTo0XOoe0VRwmKN/DE0E/cB76nktwnLhmGVxAKtG aQ/XIeXpCCDY/beBwbLYWTlyAbS0bvr8OfKSkiP/xRL2Q8ZRO2CgNM6O2zjI6VUtronY 2n3wtZbZz9lhxA77P8i/QalXdNOjZnGg0UVBY1aPce8bkfXECCQ7s3UpDyXTPuHTdX+P lkasRhzFbvOmZ4lgi1ARw+Cnmll/ZRT9bJEe4DpolnAYwB1fjyOUCMU7GmMnGMHf1VSW 19Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Mw+VDcV2kIndQWct5dm6yaq4vBp/HlTp8mqiaJHsvbg=; b=xDmMMYIJLWqxYfIaDquzNx8x1RYnb5/3zzgKuCfDdK2C+rZHNEIVgbGskArQYE3Zls oc459Ept63DF2yFUJXgzDhfdjxoNb5XNjGf8F68s4zkP+KBBJfkm9cl4dBwk8BtsXBOh +52w03a9wz5dRAuSARiwjMXl8/tyr03k3wMTxq1r/jkPBRQRyunEYKRjRI49a40WrO91 4PwDdxmvsrIwVsW19NuxGkPPIIG42KqOy/5fXL8Pb1KUcoipGb1bch9og+rKWENMA35l wEcf973w5zljFVhPUblq1WrDpyyKGfe+JMDXvRrBi4Qe4De5UQX/Ud7Gp8m1MpePI8bk VGuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ICGC40s8; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si4561497pll.156.2021.10.28.11.58.02; Thu, 28 Oct 2021 11:58:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ICGC40s8; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbhJ1TA0 (ORCPT + 67 others); Thu, 28 Oct 2021 15:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbhJ1TAZ (ORCPT ); Thu, 28 Oct 2021 15:00:25 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75E52C061570 for ; Thu, 28 Oct 2021 11:57:58 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id l2so12381551lji.6 for ; Thu, 28 Oct 2021 11:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mw+VDcV2kIndQWct5dm6yaq4vBp/HlTp8mqiaJHsvbg=; b=ICGC40s8o4poV1N11X+JXRkG65G5HiSh9m6kiy/MXKFbogpX5+e3xaC/U3w0X0hK7L RIVKJ36JuKUvhHSAzL1Ggg+RC5+nZt8Z4MoLAc07Xx1/hoRJwu5hCqjebga2Nj1K9jIn nDocNb4MoyZeW27InIJDB+jsoCQ+vcn5D+qmmkqVEiMyfVlciVnwqLADMq48u6QKC94y 32jsEC8/XeBcJipMhANCYuHSvNNJJTIvGuO9YH7W7nln7iubrcMNrSqd8W0qQJ/9GPke 099po2UkO61mWCI9Vqea2wr2vnVUL+hOa/KhmD2GB9zSoF45FbFna8FS118NL5+U7+eh Ez5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mw+VDcV2kIndQWct5dm6yaq4vBp/HlTp8mqiaJHsvbg=; b=wtVd3z9vDzDIn2lt2OGZKVP7hkIH4uS5wXi9rJOxrckIpZfiRHDH7EYtsMmNE8z3M7 IFFHBngX1H3SItB+BLetUpK5s17plnjgI4JPUF4A46E8Iup4nEIfrNGO5o42UMfAF544 NPc48VRU2lF6H7vNqs5SoYucxpXEzWUs9IxRCgx2q3hA2L0XYDeiIWQlJugVopT0++oy cjOsMsKyN2FaLZlax4a8kLXUnW8gzTcruwIAe9YwfuYocjiL59z7/v8mBGr/cIUmSCKY /ZMYHJBMMbSHKowMcRl4oeydCdFWyqHf7/c6SvVwEMMJzNGEndPNPDMTK5wWOQVi8X9i z0ww== X-Gm-Message-State: AOAM533c2P4dXXwJmqap2LAudLSH9y7Zz9O6FNUH+JLfOp7CQFQmMLbr aEp+4nsbseeUAzC92ASf/gN/lc2Fn2e6+w2tnJFagHIK X-Received: by 2002:a2e:9b81:: with SMTP id z1mr6577518lji.518.1635447476629; Thu, 28 Oct 2021 11:57:56 -0700 (PDT) MIME-Version: 1.0 References: <20211016234609.1568317-1-chunkeey@gmail.com> <87ee855xwa.fsf@codeaurora.org> <3a8840ea-1499-950b-fb44-7546a32c586f@gmail.com> <875yth5pt3.fsf@codeaurora.org> <3aebb711-dc45-3cbf-43cb-12f59909baf0@gmail.com> In-Reply-To: <3aebb711-dc45-3cbf-43cb-12f59909baf0@gmail.com> From: Ansuel Smith Date: Thu, 28 Oct 2021 20:57:45 +0200 Message-ID: Subject: Re: [PATCH v2] ath10k: fetch (pre-)calibration data via nvmem subsystem To: Christian Lamparter Cc: Kalle Valo , linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > > On 28/10/2021 13:52, Kalle Valo wrote: > > >>>> > >>>> v1 -> v2: > >>>> - use %zu and %u in the format string for size_t > >>>> and u32 types (catched by the "kernel test robot"). > >>>> - reworded commit message + successfully tested on QCA9880v2 > >>>> > >>>> I placed the nvmem code in front of the current "file" method > >>>> (firmware_request). Reason is that this makes it easier for me > >>>> to test it. If needed it can be moved to a different place. > >>> > >>> Looks good to me. Before I apply this, I want to mention to that I have > >>> had a long in my deferred queue related two patchsets: > >> > >> > >>> https://patchwork.kernel.org/project/linux-wireless/patch/20200927192515.86-1-ansuelsmth@gmail.com/ > >>> https://patchwork.kernel.org/project/linux-wireless/patch/20200927192515.86-2-ansuelsmth@gmail.com/ > >> > >> Oh ok, serves me right for not looking thoroughly googling this first. > >> Alban Bedel and Ansuel's work made this nvmem all possible. And indeed, > >> the second patch here looks eerie similar. > >> > >> Do you want to go with his two patches instead? > > > > I would prefer to take your patch. > > Ok. > > >> I'll change mine, so it just consists of the cal_mode for the older > >> QCA9880v2,QCA9887 and add the -EPROBE_DEFER handling. This > >> -EPROBE_DEFER only ever comes up with the Meraki gear. This is because > >> Meraki likes putting the MACs-Values into SoC-connected AT24 > >> eeproms-chips. Everyone else just have them in a proper FLASH > >> partition. Though, this's usually nothing more than adding the > >> following line: > >> > >> if (ret == -EPROBER_DEFER) > >> return ret; > > > > So I'll drop this version and wait for v3? > > I guess that "waiting for v3" won't be necessary in this case. > If @Ansuel doesn't voice any concerns, you might as well just > apply v2. > > The "[1/2] ath10k: Try to get mac-address from dts" patch > will need a respin, so it can apply cleanly. > > Is Anyone interested? If not, I can take a shot at it on Saturday. > A refreshed patch is applied to atk10k-ct repo so it would be good to have the same patch on normal ath10k. Many router would benefit from that. > (There's the tiny question of that device_get_mac_address() which > ath10k currently uses. It looks a lot like of_get_mac_address() too! > but with extra ACPI (through FWNODE-which also includes OF), but > without NVMEM.) > > Cheers, > Christian About this I never manage to understand the priority... Should ACPI variant have priority and fallback to the OF api or the OF api should overwrite any mac if a nvmem cell is found?