Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4168434pxb; Mon, 8 Feb 2021 09:28:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyr4RPNDgSP//2xEVj9727n+w9mz2zYYqCY2doSfQB4bwOclbkXusP/D2knhqfNetDlgcBa X-Received: by 2002:a05:6402:1342:: with SMTP id y2mr18502467edw.105.1612805328298; Mon, 08 Feb 2021 09:28:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612805328; cv=none; d=google.com; s=arc-20160816; b=e9cxbtsbIRv7aOqVTQawluLx50zJQ9SPI1cvqZKSyhCsGrD5xzbz+DnEJQTRqN4s59 c0J1ekqDa7SDp7irhI3LkWLPZTnpDAbyD4ueVQYHYpZjL1orjwXqRXHgzzLh0CQ+mijs RcFpAZZKnVx1JJmSQXQV0eaUdi/QfAJDB/8DxwVbtHbhf/jttuLvHSudnok9Jm4q2Fhi aGxx232qWk2Fvtl1uHVJ8YSyEwv2ZBK1aYwWwtbxnr1SzfOlgeJPMQNTIP9WR6g69Alb ZPEUyh2roDEtMI9QYSj9/O1xix2JtWYd2GHWEKkVR0IXDtWp1FC82uCrjDzrO5+s+y0J qKyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=VvrhI2uHyem0TWcE3hoIWIu/Lz0TWdmIj8+lLm4p6+c=; b=hQftDaUk+1kz7DY8EViK1ym9Y0ner0LmONDNWwMnPofxWkEJaN7/Wj8f5awet5tkGA sfe/lX81y0CJ4OKYdupg4wS24mtnk37rRes7HrivAVod6HyTLCD3pY2donADK6rKNRB+ KDTrleR8WF49HkjtT94LlFaaj5OTrXdvj7TEOf4dIZNQBMHKbqH1fqeJte2ArEFSQ3De c5M0wbTHV4l0MRr3xP55Nxrvksh5SqTM43yLVEEoDdcQO0DKQHiBTTZaHCYYUbajS38C +FcVMimyW+VzIjfPvo3CT8WIwM8SbNOjK88owaFyEWTH1BXsSf1onoFQ8yAJkFvQ8o78 bk7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Pd9Nlg7l; 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 gv30si11270876ejc.474.2021.02.08.09.28.22; Mon, 08 Feb 2021 09:28:48 -0800 (PST) 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=Pd9Nlg7l; 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 S234229AbhBHRZF (ORCPT + 99 others); Mon, 8 Feb 2021 12:25:05 -0500 Received: from mail29.static.mailgun.info ([104.130.122.29]:48564 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234661AbhBHRW1 (ORCPT ); Mon, 8 Feb 2021 12:22:27 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1612804928; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=VvrhI2uHyem0TWcE3hoIWIu/Lz0TWdmIj8+lLm4p6+c=; b=Pd9Nlg7liiOxM24L/l5st/LnMbooGF5+SWnNdAv6tpkgtiQSQUR/mVFgfuK4Xlg8dxVmZwGq uN4kztGdmyeIfAdsq2csnC2/YPMXXiCvlCjq2MxGzpsa2arewDaGqvaY33KZWiowaohp1CxA cMevu3D1mVsasSD9NLU8XzuFxUE= X-Mailgun-Sending-Ip: 104.130.122.29 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-n05.prod.us-east-1.postgun.com with SMTP id 6021731be4842e9128addea5 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 08 Feb 2021 17:21:31 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 46757C43465; Mon, 8 Feb 2021 17:21:30 +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 potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3C6D8C433CA; Mon, 8 Feb 2021 17:21:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3C6D8C433CA 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=kvalo@codeaurora.org From: Kalle Valo To: Amit Pundir Cc: Rob Herring , dt , netdev@vger.kernel.org, Jeffrey Hugo , linux-wireless@vger.kernel.org, lkml , ath10k , Bjorn Andersson , John Stultz , Jakub Kicinski , Konrad Dybcio , Sumit Semwal , David S Miller Subject: Re: [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests References: <1601058581-19461-1-git-send-email-amit.pundir@linaro.org> <20200929190817.GA968845@bogus> <20201029134017.GA807@yoga> <20201124175146.GG185852@builder.lan> <87sg8heeta.fsf@codeaurora.org> Date: Mon, 08 Feb 2021 19:21:24 +0200 In-Reply-To: (Amit Pundir's message of "Tue, 2 Feb 2021 16:41:19 +0530") Message-ID: <87czxa4grv.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Amit Pundir writes: > Hi Kalle, > > On Mon, 7 Dec 2020 at 22:25, Kalle Valo wrote: >> >> This is firmware version specific, right? There's also enum >> ath10k_fw_features which is embedded within firmware-N.bin, we could add >> a new flag there. But that means that a correct firmware-N.bin is needed >> for each firmware version, not sure if that would work out. Just >> throwing out ideas here. > > Apologies for this late reply. I was out for a while. No worries. > If by that (the firmware version) you mean "QC_IMAGE_VERSION_STRING", > then that may be a bit tricky. Pocophone F1 use the same firmware > family version (WLAN.HL.2.0.XXX), used by Dragonboard 845c (which has > Wi-Fi working upstream). I'm meaning the ath10k firmware meta data we have in firmware-N.bin (N=2,3,4...) file. A quick summary: Every ath10k firmware release should have firmware-N.bin. The file is created with this tool: https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath10k/ath10k-fwencoder firmware-N.bin contains various metadata, one of those being firmware feature flags: enum ath10k_fw_features { /* wmi_mgmt_rx_hdr contains extra RSSI information */ ATH10K_FW_FEATURE_EXT_WMI_MGMT_RX = 0, /* Firmware from 10X branch. Deprecated, don't use in new code. */ ATH10K_FW_FEATURE_WMI_10X = 1, [...] So what you could is add a new flag enum ath10k_fw_features, create a new firmware-N.bin for your device and enable the flag on the firmware releases for your device only. I don't know if this is usable, but one solution which came to my mind. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches