Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp165344pxb; Wed, 3 Nov 2021 01:57:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK2CHa0Jxlt39RtgDhrFTsAsOLDg+UOCu+kLICebsuI/f+ZRPQsYTgFXWzJO2sPAlU2WwZ X-Received: by 2002:a05:6402:327:: with SMTP id q7mr46739220edw.126.1635929878201; Wed, 03 Nov 2021 01:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635929878; cv=none; d=google.com; s=arc-20160816; b=h8PrAId2mHFyMNN61ePWfGOdEZF3pHMa/GRopduZpTMHyFGvyB4UMEXWBeF5Sc9NaC eDJzVUDzoXwBKL/a7CbZhi8PkTUeeUZbe9kOkpltnpwPe4PxINuIhhCFBk02gBCNXjYD vnOw7wNWOAtZ7nyeYGDPehC4GD6qTjhiZpEaREEvSMfdArwHfW+losOkSi9IU2Ktra99 c84lfSiJCeMuFhC989UROIPTRCXz9WuwcT0nc6lz0X5Id63J9vH6pjoa+Q2xfMqip4cH jAOyWIlomZXM98RjiBkWOF22XTp9UEo8J/uab2Zf95ZNcgU3eoK97cgcG4UFMMG3vdU7 9LTw== 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=Ke2DMmGcDxyTQhUNjevIWqTh2TRT13R0uvROB0QENYc=; b=toWjACeYFmachiOTzqDBAQGK7GpgIxnjIukGyzqugQAcYUCrt94eNXK0fO2aJpUSuj KbrgQyolBC8n/KziMZCg/t8KhU9Q+Pn1pYIIJzN/GuuaPBRenT19kgCrQq3G5hdv6zCu U+FbqGDqIRoqWpKnxdMe0QoBy0hro/Eg0LawZG60q+s0bNeqjjoxurf2u6itIPSYY8bb hiZU6c4RGzGIbeXLBkvwltABuiGk1NqMy8+fi0hSQZ3tXeY2ac++dBgeqtTGZi96jpWk rJ1XTtCwtzTXnpH13s2ytpr3PJghB8qN5FIgltM/lPAW32zK8gnwfVF5uFVG8h0lW03s V6Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=UsaQxzs6; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 d13si2826646edo.513.2021.11.03.01.57.33; Wed, 03 Nov 2021 01:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=UsaQxzs6; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231435AbhKCI7V (ORCPT + 99 others); Wed, 3 Nov 2021 04:59:21 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:61396 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231721AbhKCI7N (ORCPT ); Wed, 3 Nov 2021 04:59:13 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1635929797; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=Ke2DMmGcDxyTQhUNjevIWqTh2TRT13R0uvROB0QENYc=; b=UsaQxzs6PlxKZmjhSgKmyNLTjsTwhtVxM9Ul2tYCmBTzZsvaLaKeYfqTO/vGw5nu0aS9cZvh 5mN7EwBBRtdLd415DSaEKxf/MAWN4d1On7Z3nBC0Lm+zqYalcpOEPk1m4MmimBDM1+lUi35c awibcK8JmPrIXtwG7ZHQXywWX00= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI2MTA3ZSIsICJsaW51eC1ibHVldG9vdGhAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd 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-east-1.postgun.com with SMTP id 61824eb7e07de15b123e1606 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 03 Nov 2021 08:56:23 GMT Sender: tjiang=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7CA2AC43616; Wed, 3 Nov 2021 08:56:22 +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, URIBL_BLOCKED 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 94F9BC43460; Wed, 3 Nov 2021 08:56:20 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 03 Nov 2021 16:56:20 +0800 From: tjiang@codeaurora.org To: Marcel Holtmann Cc: Johan Hedberg , Luiz Augusto von Dentz , Linux Kernel Mailing List , linux-bluetooth , MSM , Balakrishna Godavarthi , c-hbandi@codeaurora.org, Hemantg , Matthias Kaehlcke , Rocky Liao , zijuhu@codeaurora.org Subject: Re: [PATCH v1] Bluetooth: btusb: correct nvm file name for WCN6855 btsoc In-Reply-To: <06F02AA4-57B3-48C8-8366-DEE672C510FA@holtmann.org> References: <6953ba78cc31b7bc1a188b998f6c6b8c@codeaurora.org> <06F02AA4-57B3-48C8-8366-DEE672C510FA@holtmann.org> Message-ID: <8fe244a64cc29c47596bfe647f209b59@codeaurora.org> X-Sender: tjiang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org thanks for your comments, marcel. I update one new version, thank you. regards. tim On 2021-11-03 16:31, Marcel Holtmann wrote: > Hi Tim, > >> As we name nvm file by using big-endian for boardID, so align host >> with it. >> >> Signed-off-by: Tim Jiang >> --- >> drivers/bluetooth/btusb.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c >> index 46d892bbde62..572d64524cf3 100644 >> --- a/drivers/bluetooth/btusb.c >> +++ b/drivers/bluetooth/btusb.c >> @@ -3072,7 +3072,7 @@ static void btusb_generate_qca_nvm_name(char >> *fwname, size_t max_size, >> u16 flag = le16_to_cpu(ver->flag); >> >> if (((flag >> 8) & 0xff) == QCA_FLAG_MULTI_NVM) { >> - u16 board_id = le16_to_cpu(ver->board_id); >> + u16 board_id = be16_to_cpu(ver->board_id); >> const char *variant; > > this change is not matching the commit description. It makes no sense. > This is about your ver data structure and not your filename. > > So inside your ver struct you have a mix of little-endian and > bit-endian fields? > > Regards > > Marcel