Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4903043iog; Wed, 22 Jun 2022 08:01:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t62vwxZYu5Qgc0lPgpuCL9lCmhwOft49h/4KGgm2F1kY1qBxxy3UMBEmRIEgvvGGXVpen8 X-Received: by 2002:a63:8a4b:0:b0:40d:4365:a12a with SMTP id y72-20020a638a4b000000b0040d4365a12amr676875pgd.218.1655910116992; Wed, 22 Jun 2022 08:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655910116; cv=none; d=google.com; s=arc-20160816; b=Uv3x+3h2WihMHeUyVdWKAKettc+4PR+ZfH5vBscUh4wiqKio6/gJAJcKt52TUZUOH5 7V7yXLqHp3OlNTFJUlYrud/5hDLC/Q2UiFsvROYAYzRH9kJGiEb0iI7i0ODjxekH00xl TFK44oHczbqqfwH/ySYhOg4E0XrMfJEL8KLOG80hLUvEbl701pqY4dG6SORF5X7Z+V2P O7JUTmk0677G4TxH0/WLT9sAqrCdzvwTiwodSbDe3XpTClk4iWcccfLiQON0hRpBxFS8 UvUPDvSnvMrh3tXIRElmNNuXYmPMqfrqNCqpy/Z9rT40vxNA+f9I6GI5OFGgDZ8FIyZL w3PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=X4Pad+8YipqXc8GK64t0Ga8h3j5acT4+ZXhROSFDHAY=; b=xExvoJuHMv0/tqqlRM32Alkbvc6VSMbUcFPVEqnrnXZssrFFRY4/ykO3aCMREoYbCf Th2rVo+rXt36RtnyrrA4SZtsG+zMyN1AHnB4NfjuDjJcrZt/gNkSVpeh0YhTmqLfK3AY VXrRyZ1EWFZlf6vdbkj5dfOqX/j6wJg6ahUd7WMCCIPriGTqTJw7FePdd31z6yPMxrjw gEVeMDFK6dMatp3C3gT2WtzkJc8edPxQnU2Xg2IO5IQduYq/+tQjleX5KTzokouwzL9r GHjIhnTtuCx93mdnaEtRv/GWJxXXPzP3NPICMYs9t4h0b/QhIaLuFBY5ysMv3VkdNXJP 2Icg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XaohlEvy; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v12-20020a637a0c000000b0040c97898fcbsi15895242pgc.797.2022.06.22.08.01.40; Wed, 22 Jun 2022 08:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XaohlEvy; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358822AbiFVOzr (ORCPT + 65 others); Wed, 22 Jun 2022 10:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358778AbiFVOzp (ORCPT ); Wed, 22 Jun 2022 10:55:45 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E9523A5DC for ; Wed, 22 Jun 2022 07:55:40 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id c65so1252005edf.4 for ; Wed, 22 Jun 2022 07:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=X4Pad+8YipqXc8GK64t0Ga8h3j5acT4+ZXhROSFDHAY=; b=XaohlEvylppMCY+/f6p9Lh/ym1Lu1XP4HY/ahNo8U3FobNAq5i6QYoHqsYQH7gsp/l tG0fOtThXQAFnAk1dNF7pnFrQ4KacfboqDJZlHSNCi4MNhEBK0MOqo2TKJ5CV6RGbdy8 f/vaZA3fJT4lB6x10IJLm42VIZPioeOE849DYzCJzmkT5XAmzPFH0e4Lx73dVQo/n6yZ fuefbMwfGTzqKghT6wkElXWdCU/OdNrrAZm3GfLUkwweapg38cqZQE4YLIwjMk0PUKNW J5fNUAaAnUmKURnXn9ZUxVa43/wCQBV6PEFl2Db86eHY9Aapzu44VY1ZzO8bo+0KlerO dDog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=X4Pad+8YipqXc8GK64t0Ga8h3j5acT4+ZXhROSFDHAY=; b=ykE5YC2J3SAHcJylQDmX7ti2p8+59ICt4TO0qG8Pisypeb/xO0JYsomta5yn9+3ghQ rCMsEqYCw34tSbkQWtnGVfRhGYopzgZp4XGB3R3fOonoobKMYGtJ/m6s4HCzVdW63gwG /273MTMPerfR0rIpfdI/hy8i70FWvOC+uWLji6mXWZe63j+7ahUPOQgZFNYrI3R5rBv9 GiKyVfaWmjz1rJpDAT7WzaH5SIjtn/EjCKAR6/Hhcy7pfY1nZY4R6DyCKBaU5aUqLkWV CR4heI9ZRByN1exw160PKStdQ+CnNVOH42/u//U6xLXlDbs47IEY0GLGoTMXeI2F8oQF kdvQ== X-Gm-Message-State: AJIora+XzG0BG/tfutbObEEig8E+HeW94Dcvshx2iz8jGZ22FLB4yI+S ErFZFixWpv5vLwxasJlUfIrv4A== X-Received: by 2002:a05:6402:528d:b0:435:89c6:e16b with SMTP id en13-20020a056402528d00b0043589c6e16bmr4717954edb.292.1655909739169; Wed, 22 Jun 2022 07:55:39 -0700 (PDT) Received: from [192.168.0.226] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id ju27-20020a17090798bb00b00722e57fa051sm2678547ejc.90.2022.06.22.07.55.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jun 2022 07:55:38 -0700 (PDT) Message-ID: <60ee4aa5-4fef-24e0-0ccf-b93eee1db876@linaro.org> Date: Wed, 22 Jun 2022 16:55:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 1/2] dt-bindings: net: wireless: ath11k: add new DT entry for board ID Content-Language: en-US To: Robert Marko Cc: Kalle Valo , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Rob Herring , krzysztof.kozlowski+dt@linaro.org, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Devicetree List , open list References: <20220621135339.1269409-1-robimarko@gmail.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 21/06/2022 20:47, Robert Marko wrote: > On Tue, 21 Jun 2022 at 17:58, Krzysztof Kozlowski > wrote: >> >> On 21/06/2022 15:53, Robert Marko wrote: >>> bus + qmi-chip-id + qmi-board-id and optionally the variant are currently >>> used for identifying the correct board data file. >>> >>> This however is sometimes not enough as all of the IPQ8074 boards that I >>> have access to dont have the qmi-board-id properly fused and simply return >>> the default value of 0xFF. >>> >>> So, to provide the correct qmi-board-id add a new DT property that allows >>> the qmi-board-id to be overridden from DTS in cases where its not set. >>> This is what vendors have been doing in the stock firmwares that were >>> shipped on boards I have. >>> >>> Signed-off-by: Robert Marko >> >> Thank you for your patch. There is something to discuss/improve. >> >>> --- >>> .../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 8 ++++++++ >>> 1 file changed, 8 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml >>> index a677b056f112..fe6aafdab9d4 100644 >>> --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml >>> +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml >>> @@ -41,6 +41,14 @@ properties: >>> * reg >>> * reg-names >>> >>> + qcom,ath11k-board-id: >> >> The "board" a bit confuses me because in the context of entire system it >> means the entire hardware running Qualcomm SoC. This is sometimes >> encoded as qcom,board-id property. > > Hi Krzysztof, > I agree that the name is a bit confusing, it's not the same as > qcom,board-id AFAIK > and QCA as well as vendors are using a similar property in the wifi > node to override > the default qmi-board-id to the correct one as its rarely properly fused. > > I assume it would be better-called qcom,ath11k-qmi-board-id as you > dont even have > to be using a Qualcomm SoC as the same is used by PCI ath11k cards as well. > Thanks for the explanation. What is the "board" in that context? The card/hardware with ath11k? Then maybe qcom,ath11k-qmi-id or qcom,ath11k-qmi-hw-id? Best regards, Krzysztof