Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp147398pxb; Wed, 3 Nov 2021 01:32:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj4RNX3rFmQ6icTop/dPJ+1IXurNvYIsZh5MLQq8/9/Fr5IvKlXjXYHHBM8qU1wPB96Hts X-Received: by 2002:a17:906:11c5:: with SMTP id o5mr46845520eja.42.1635928330329; Wed, 03 Nov 2021 01:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635928330; cv=none; d=google.com; s=arc-20160816; b=nlbbHJv5bKapctbyFvOIwQT35pd0PQZ2SkuZzLx1BSgNLL214uC3DlH0XD2OzoClQp yBDPgb9RbfKSuv135mU3L0TFGNV4ZvqLf1mfEei1kjZY4N7woO0Lbhbj0bLNLKZ3QUNX 2djJUBIvfph9jxrFCN569WAC0pUAjVl4kmxxJE1JRXEg6XGqxG9cZZgEDdNXsoJfo/hJ 45UB5kmo94xh3dxDRYrmqgH61jAv1eikb7Yb8MUkqwgcCev5VctdwADv0Ex/09hiV16M zxjBVSbLrMyn4MY0RHBWZ9G+fK1c4RN62x9/rcVUx3tKrH0kecKX9Yi3v/ZTV3A4949A q8bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=fSW3SliVMapNwjrhb7xjMPUbacIsMnxctoz5eQMsEkM=; b=Izfd/hqef+tdJEiWGLUdM0oRr7wwW2dptldZ3aXkqxmC8Qv2w/cP9dbfJ83efc2zwh oltfZivzdwQu/RIFSl6joLSokUhdgTA0RhwSuav2HfKbGIIfd26GyNyXgCkZSaHIgBWl MxYJHsBkuocmJa5ji3aMT+GownxbGPbTwo7Hx6sYgtOLaI2FqXVL6VfJVTlL6N7IhxP+ jwzm8pvmqwBaBR4kBnkK0uQ/nJp6kzrRzfbRQIYUjPw1DYhHo3j2hfcqTyonvgmIrn5N dE9oBRiPqdNsHrW8eI9x1SXK1vnZ4k7/uiQenIWKAsjrrWc1xx2iKmR7APxn+mNTjdUz hZCA== ARC-Authentication-Results: i=1; mx.google.com; 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 l4si3225965edj.282.2021.11.03.01.31.41; Wed, 03 Nov 2021 01:32:10 -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; 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 S231322AbhKCIdl convert rfc822-to-8bit (ORCPT + 99 others); Wed, 3 Nov 2021 04:33:41 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:51154 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230463AbhKCIdl (ORCPT ); Wed, 3 Nov 2021 04:33:41 -0400 Received: from smtpclient.apple (p4fefc15c.dip0.t-ipconnect.de [79.239.193.92]) by mail.holtmann.org (Postfix) with ESMTPSA id CBC78CED07; Wed, 3 Nov 2021 09:31:03 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Subject: Re: [PATCH v1] Bluetooth: btusb: correct nvm file name for WCN6855 btsoc From: Marcel Holtmann In-Reply-To: <6953ba78cc31b7bc1a188b998f6c6b8c@codeaurora.org> Date: Wed, 3 Nov 2021 09:31:03 +0100 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 Content-Transfer-Encoding: 8BIT Message-Id: <06F02AA4-57B3-48C8-8366-DEE672C510FA@holtmann.org> References: <6953ba78cc31b7bc1a188b998f6c6b8c@codeaurora.org> To: tjiang@codeaurora.org X-Mailer: Apple Mail (2.3693.20.0.1.32) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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