Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1639046yba; Sun, 5 May 2019 10:33:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8ziUwqesVIcG8pVgzBhD9IQlX0q41pGBsNuX6eHiWWMViMb2iDAPbEpl44LPFpMAqkvlz X-Received: by 2002:a65:60ca:: with SMTP id r10mr26411900pgv.64.1557077603371; Sun, 05 May 2019 10:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557077603; cv=none; d=google.com; s=arc-20160816; b=bnqmQMj4/hkXEbmZR+22W8Qu2MXPDdp1xcRBkFVj0AVGJR+i0tCYuf+nLmhEalQaJX FO60zAu0QY18K23MG8UooL7kpW+amXnBSJ+KXDJsuXELqsNWQ1vneGBY8Ows72FU1Eo3 e1h9/bEkNI+5rJbNp/um/lYBYAJb7BVBi1voTspq6l6DO7nGgtUvq3lukT5BTNb3kK71 dIgbPoBxoDPIJxtOyuWFrj8uyVD7XeDwCeJT3a4Fpskx/iraoFrAb0sD4bBaHKTeq/0a m6EjKwV6pYcNKELNhVfclGsbgSfKIQeaHMcVxNdgnT/jlNe+Jb46j/ajKReREkJ3pSPo wDlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=78BLU74fsX9fVZChZywPoLRNMAEdg7mKJJ8QqYOIkpQ=; b=j9DC5ESAvMHLA183NGVI/3hn69PkdVJgWEXcvbYlohUxzcIoni0eaeMnF6uAqku9mO rpPFHt+TxrnMAu7chealdvqL1IWjBXR7ptuNSG40gsYjk9MKkvHmFqVxVH92EumPzPPy hucKvXJC5bzBenKeCcHBJgrzlwC3ZfRX39eBOkJy5FrBNyTMd9Rf7YYKJHaC0OYJ7ftk 8SJHTveIAjoP4PZedXXtc4tAL3NsCZqGxhtCXF6NsfIlcxBVDPf4WIEFoVGQ3t4d8zYa xBY6O8rD/XXIhK+CL29jsoWVikoYTBdFoy0echXRjZr4n+0i4a7Y6J3cz7YlSPYa7U2A d2Zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 g64si11865353pfd.281.2019.05.05.10.33.08; Sun, 05 May 2019 10:33:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727875AbfEERdB convert rfc822-to-8bit (ORCPT + 99 others); Sun, 5 May 2019 13:33:01 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:52995 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbfEERdB (ORCPT ); Sun, 5 May 2019 13:33:01 -0400 Received: from marcel-macpro.fritz.box (p4FF9FD9B.dip0.t-ipconnect.de [79.249.253.155]) by mail.holtmann.org (Postfix) with ESMTPSA id BA6BBCEE02; Sun, 5 May 2019 19:41:12 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: [PATCH v3 2/2] dt-bindings: net: bluetooth: Add device property firmware-name for QCA6174 From: Marcel Holtmann In-Reply-To: <17221139821fb6ee35f3119df7405401@codeaurora.org> Date: Sun, 5 May 2019 19:32:58 +0200 Cc: Rob Herring , Mark Rutland , Johan Hedberg , Thierry Escande , netdev , devicetree , linux-kernel@vger.kernel.org, "open list:BLUETOOTH DRIVERS" , linux-arm-msm , Balakrishna Godavarthi , linux-bluetooth-owner@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <874D1677-BE9F-454C-AA95-39E3F3716300@holtmann.org> References: <1554368908-22017-2-git-send-email-rjliao@codeaurora.org> <1554888476-17560-1-git-send-email-rjliao@codeaurora.org> <7e0cf9ba98260309c43d9d6e63dead6c@codeaurora.org> <60C7AC89-37B6-441C-9349-BCB15717EB2C@holtmann.org> <17221139821fb6ee35f3119df7405401@codeaurora.org> To: Rocky Liao X-Mailer: Apple Mail (2.3445.104.8) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Rocky, >>>>>> This patch adds an optional device property "firmware-name" to allow >>>>>> the >>>>>> driver to load customized nvm firmware file based on this property. >>>>>> Signed-off-by: Rocky Liao >>>>>> --- >>>>>> Changes in v3: >>>>>> * added firmware-name instead of nvm-postfix to specify full firmware >>>>>> name >>>>>> --- >>>>>> Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt | 2 ++ >>>>>> 1 file changed, 2 insertions(+) >>>>>> diff --git >>>>>> a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt >>>>>> b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt >>>>>> index 824c0e2..2bcea50 100644 >>>>>> --- a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt >>>>>> +++ b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt >>>>>> @@ -16,6 +16,7 @@ Optional properties for compatible string >>>>>> qcom,qca6174-bt: >>>>>> - enable-gpios: gpio specifier used to enable chip >>>>>> - clocks: clock provided to the controller (SUSCLK_32KHZ) >>>>>> + - firmware-name: specify the name of nvm firmware to load >>>>>> Required properties for compatible string qcom,wcn3990-bt: >>>>>> @@ -39,6 +40,7 @@ serial@7570000 { >>>>>> enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; >>>>>> clocks = <&divclk4>; >>>>>> + firmware-name = "nvm_00440302.bin"; >>>>>> }; >>>>> and how is this a firmware-name property. Wouldn’t this be more like >>>>> nvm-file or something along these lines. This really needs to be >>>>> cleared with Rob to pick the right property name. >>>>> Regards >>>>> Marcel >>>> Hi Rob, >>>> Are you OK to use a property name "nvm-file" or "firmware-nvm-file"? >>>> Actually we have two firmware files, one is the patch file which is >>>> common to all of the products, the other is the nvm file which is >>>> customized. Using a "nvm-file" or "firmware-nvm-file" property name >>>> would be more clear. >>> 'firmware-name' is the standard name for specifying firmware file names. >> but it is not a firmware file, it is a NVM file. What happens if in >> the future they need a firmware file and a NVM file? >> Regards >> Marcel > > We won't need to specify a rampatch firmware file in future as it's a same file for all the boards with same chip, only the NVM firmware file may have board differences. NVM file is also one of the firmware files so I think it should be OK to use "firmware-name" property to specify it. ok then, but I need patches that apply cleanly against bluetooth-next. Regards Marcel