Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3209237pxj; Mon, 24 May 2021 01:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGxfj/7NwU1kotyhB803Pj8D/vkc8z5VZpFY9yTePwUBMtc2MpTRyn0KEXE8MVZuhbPhtH X-Received: by 2002:a02:866a:: with SMTP id e97mr24140587jai.136.1621843276447; Mon, 24 May 2021 01:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621843276; cv=none; d=google.com; s=arc-20160816; b=K8Ec7ey5iZN8dcF2R846bNSSMkuif5i/5b5J4O/hdG/k9LsN6mxFFQlLttU9YFZmWU 5BJoZvpiaJ+PrbgvXnIAd+gNc+2UFnkWAGXRCh0UqIYlC6fzdZjcV7cXUgqoJnQO+Moh yxzT8F4FsKw2oPFTol0RDtDjK4UnNwjEXCZwlWBsilypMDf9irZfUCNGkOeVJXYKz/w4 ltsxiWFMqdmvqJVUIHFe9YndNDTGpiKo6fuyWWDx5PblgMDw3VM0nMmN+l83nG6o5Y+D zLT+SkyTyNPE90kAnkfB7Ji6ze5XNS15BBWuqndFezT6grYTXj41fPMzw14b573/i0QP KepA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=uogsG3A+h5LeNQ0cQUSHg5KaZ9zWz24HgreBoVB53Yo=; b=lRzAI+TMOJ/CTaxXpK+JAZNWKjDcqryX9pSap93cB+YDpz0n4g/Elk4p7XKy+Ts1k7 XJtUyD3BklZ/NtPdULDoNkr5VMzORkuej7YgXbRGfXDkzuG99nuM8GgAYjoQG5iD05wP ExlbIADqdLPiXW/Gt4rr2dULZgauBexTEkyxmtoMYcC+N/9Lm0epteIRIZOnr4gnGm3b aKtEXU09EXI5TN0K91aSTtc8OMQoPmySN64hzDTuTxKfsHTrHFkUA7mQVcLMhekXXbZ5 nnieqqFUDAw72TnG3zTPR82gGzYKS6WkBp4D2Pk6qlnkQ9aVmJ2vZzMDCoXQuctKsF2X 32Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=CjmVdMzx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 z20si13090697ioe.51.2021.05.24.01.01.01; Mon, 24 May 2021 01:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=CjmVdMzx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232311AbhEXIBW (ORCPT + 99 others); Mon, 24 May 2021 04:01:22 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:10078 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232099AbhEXIBV (ORCPT ); Mon, 24 May 2021 04:01:21 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1621843193; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=uogsG3A+h5LeNQ0cQUSHg5KaZ9zWz24HgreBoVB53Yo=; b=CjmVdMzxpK7t+fBmsEen0+9lVqYwp+T9j2vYsXjUfPiyA56IGJ5L8FtuaVbHLdAojwJBV9GF YC8Ur89KaA8N3GooRRq4196mCofw4693xS2o94t5sjImz/yUs4ocFslOo/l4xITvscWPt54q ErqkQoex9EsYW4cHzqDJFURapg0= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 60ab5ce467d156359afbd472 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 24 May 2021 07:59:32 GMT Sender: tjiang=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5F87BC43460; Mon, 24 May 2021 07:59:32 +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 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tjiang) by smtp.codeaurora.org (Postfix) with ESMTPSA id AE98EC433F1; Mon, 24 May 2021 07:59:31 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 24 May 2021 15:59:31 +0800 From: tjiang@codeaurora.org To: marcel@holtmann.org Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, bgodavar@codeaurora.org, c-hbandi@codeaurora.org, hemantg@codeaurora.org, mka@chromium.org, rjliao@codeaurora.org Subject: Re: [PATCH v1] Bluetooth: btusb: use default nvm if boardID is 0 for wcn6855. In-Reply-To: <1618996576-7743-1-git-send-email-zijuhu@codeaurora.org> References: <1618996576-7743-1-git-send-email-zijuhu@codeaurora.org> Message-ID: <404766ae900a70b0ae2d28e702508e21@codeaurora.org> X-Sender: tjiang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org marcel: could you help mainline this change ? regards. tjiang On 2021-04-21 17:16, Zijun Hu wrote: > From: Tim Jiang > > if boardID is 0, will use the default nvm file without surfix. > > Signed-off-by: Tim Jiang > --- > drivers/bluetooth/btusb.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c > index 6f25337..61afea9 100644 > --- a/drivers/bluetooth/btusb.c > +++ b/drivers/bluetooth/btusb.c > @@ -4138,9 +4138,14 @@ static int btusb_setup_qca_load_nvm(struct > hci_dev *hdev, > int err; > > if (((ver->flag >> 8) & 0xff) == QCA_FLAG_MULTI_NVM) { > - snprintf(fwname, sizeof(fwname), "qca/nvm_usb_%08x_%04x.bin", > - le32_to_cpu(ver->rom_version), > - le16_to_cpu(ver->board_id)); > + if (le16_to_cpu(ver->board_id) == 0x0) { //if boardid equal 0, use > default nvm. > + snprintf(fwname, sizeof(fwname), "qca/nvm_usb_%08x.bin", > + le32_to_cpu(ver->rom_version)); > + } else { > + snprintf(fwname, sizeof(fwname), "qca/nvm_usb_%08x_%04x.bin", > + le32_to_cpu(ver->rom_version), > + le16_to_cpu(ver->board_id)); > + } > } else { > snprintf(fwname, sizeof(fwname), "qca/nvm_usb_%08x.bin", > le32_to_cpu(ver->rom_version));