Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1490631pxb; Thu, 28 Oct 2021 04:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCrqLeGPC7WwBDUZ3J7xUn4aGXiv3kvui5SFTV6rmV9jA4zZFcfCBkilxrrxQ1h00drrmk X-Received: by 2002:a50:cc49:: with SMTP id n9mr5451467edi.273.1635422046165; Thu, 28 Oct 2021 04:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635422046; cv=none; d=google.com; s=arc-20160816; b=gKwcWb9B61BT4hRJi4Qvh128V50ZpnlAAlVYP7c58yQ71+Hfm+pxBlXT8LbsNlGgy6 KQ82zr0bXiU9rSOmjift6EENGszjXd34oo4eNR6s+pfzDGwKLWqCmOPeDU/faxJY92sz 8NySpg2tJujst2ELNbtNdROktx/CCrO5pQ+axlvhzapesj4iuydR/KpNdsQnr+nwjTuc 8JEWHRAa/66aoSLw+PKzidXAIgdKZH7DGbj2segdoXSWepUMHZe0huK8S92Dk0mTwAbZ Lfk7ptaOT/jwGyVj6RW/o3awkKdC2KHcXZzHfPUfAQoGSehARmdPCvNgwtxM+2yr1C39 q2Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dmarc-filter:sender:dkim-signature; bh=ld1f+aqBTT8aE5Ulu7PhU13nMnfkgomOhhW3itU1TBY=; b=pMBUT2NlWKZ79gUvzwXOzWl7GYXRj4Ytf6njoazXZ3gnd2fw2+o8DRVZHhVEysEcMy rqUm9Y9+rWz/8Of24zTdEGgIXQIwA9r4G8zQIA6OdXOSArmDyFe3CrD2/zFkQA10Afof JXauHMANk8NXoyo0xnZQ1/PHyQwobJAB+ITQ+j7gbNEbLL+tjBjAZ3jFNCIx+2k8v1v5 W5mDmS04/u54OjVA5MDzuGGOwnxd2uX49tsJ/0q7cv+Z6mTzoIHJeKbSBjknwgZ9MOtd 41fk5Y3RrmlUhn99FwIkb0QOkMEdCvE68IdyWYnsRFNmGwBkWISiiQjtGkyLCKIZL2VN X/zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VtuDLRDk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qa38si4270176ejc.111.2021.10.28.04.53.47; Thu, 28 Oct 2021 04:54:06 -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=@mg.codeaurora.org header.s=smtp header.b=VtuDLRDk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbhJ1Lzl (ORCPT + 67 others); Thu, 28 Oct 2021 07:55:41 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:14457 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbhJ1Lzk (ORCPT ); Thu, 28 Oct 2021 07:55:40 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1635421993; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=ld1f+aqBTT8aE5Ulu7PhU13nMnfkgomOhhW3itU1TBY=; b=VtuDLRDkquL/JVThFQtJoC1B69dOq0i9QBIRVm3qvYJho0MD55BVv5STqWJaTTZ17wyIn5/e mPJndt7jfz/dpjwxXKMD3/CKgpvpZmsEhBsdlPz6Frnao/aWRQagAkyVTRTgVBrqVmY4qk3a EaJyvQVzhis3rds0SdlCRxq0Ono= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 617a8f1cf6a3eeacf99ece70 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 28 Oct 2021 11:53:00 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CEB24C4360D; Thu, 28 Oct 2021 11:52:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 48775C4338F; Thu, 28 Oct 2021 11:52:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 48775C4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Kalle Valo To: Christian Lamparter Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, Ansuel Smith Subject: Re: [PATCH v2] ath10k: fetch (pre-)calibration data via nvmem subsystem References: <20211016234609.1568317-1-chunkeey@gmail.com> <87ee855xwa.fsf@codeaurora.org> <3a8840ea-1499-950b-fb44-7546a32c586f@gmail.com> Date: Thu, 28 Oct 2021 14:52:56 +0300 In-Reply-To: <3a8840ea-1499-950b-fb44-7546a32c586f@gmail.com> (Christian Lamparter's message of "Thu, 28 Oct 2021 13:31:02 +0200") Message-ID: <875yth5pt3.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Christian Lamparter writes: > On 28/10/2021 10:58, Kalle Valo wrote: >> Christian Lamparter writes: >> >>> ATH10K chips are used it wide range of routers, >>> accesspoints, range extenders, network appliances. >>> On these embedded devices, calibration data is often >>> stored on the main system's flash and was out of reach >>> for the driver. >>> >>> To bridge this gap, ath10k is getting extended to pull >>> the (pre-)calibration data through nvmem subsystem. >>> To do this, a nvmem-cell containing the information can >>> either be specified in the platform data or via device-tree. >>> >>> Tested with: >>> Netgear EX6150v2 (IPQ4018 - pre-calibration method) >>> TP-Link Archer C7 v2 (QCA9880v2 - old calibration method) >>> >>> Cc: Robert Marko >>> Cc: Thibaut VAR=C3=88NE >>> Signed-off-by: Christian Lamparter >>> --- >>> >>> 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. > 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 =3D=3D -EPROBER_DEFER) > return ret; So I'll drop this version and wait for v3? --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes