Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1341827pxb; Thu, 4 Nov 2021 00:04:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+WUQnK4ZjZnwOIZrabv40h03gM09WJnHGntXnDRueavDEiWmDfV+wTcwupPm8bShFNDS9 X-Received: by 2002:a17:907:961e:: with SMTP id gb30mr2589450ejc.436.1636009456396; Thu, 04 Nov 2021 00:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636009456; cv=none; d=google.com; s=arc-20160816; b=kHyagq6tPRPqJtAAGdtRP3Pq9+AunEsWV8hdqlfnWybsxCxvKvOIstlBWnoEfeUzcj sK5PszklH14Y++ESIIY6axD6fBII3QNWfoi1g9Bk+4tRQUSv90yRYoQ1FouDVSpcmsMT e1FRjV/1Y5E5GP1umcYS9yqqhcx6/dqnKtZrPNwA5VMlJ6gPhorbSU8qDQF4NdHC19/e xt+83mXpwe9x5SMNySuCtALm3nRgarDysxysuOHrPCEbumdFom0aIEVSC0SVaB2qF9g+ SKIUDrpY1NA2lQZCAICGyI3nEE7W7+G7tSEj5hJgz525/3wBSFU34KCtF6XxhkAe0Y+L eRiA== 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:subject:cc:to:from:date :content-transfer-encoding:mime-version:sender:dkim-signature; bh=uNpgzCdx9C8sMIcEkNxUqveaCb//Ijd7j9dqD3vKIns=; b=tESFUuG4eICpcDKFtYUvqepmKw41/Jg6l+nQrs4JGvUZ46quM1hXdaR7jh9VZvoA4E 2/xfh/v7MlCLg3n2/j1H+GbngGaOnGYNq0qiX2l/EZGRI56sUofcD80NjN7JGXZ1tXr8 fRjwzIiJWAerT+Nwr8NGbo9Q24p47eg+S9b4Fnj9NmMNCkEzfZf7eOAs6ZCgeXHmTOJS RPSWETPJbwRTklPImTm8wqcl+V8hxiSlWoyx7e95NJgaNN74URyt9XzQWFe/JaIh79iy LxunmXlzVtUiJc6+eCYmU3Q4zZ0r6lyhA69oMxSZ1iUHXuJwv2E0aEOXMI5Duy9VhM2v kFaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=vrEOAGai; 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 u23si6787316eds.163.2021.11.04.00.03.51; Thu, 04 Nov 2021 00:04:16 -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=vrEOAGai; 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 S230467AbhKDHE1 (ORCPT + 99 others); Thu, 4 Nov 2021 03:04:27 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:47049 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbhKDHEZ (ORCPT ); Thu, 4 Nov 2021 03:04:25 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1636009307; h=Message-ID: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=uNpgzCdx9C8sMIcEkNxUqveaCb//Ijd7j9dqD3vKIns=; b=vrEOAGaizX9PgnN1WHEfWT5Pf5wADXwHkVgOgI7+nC+ZDW0U65L4CnQ7w07g0ogLL33wNnyK GnlYVggLRg+vP5I++SQEeP3dKPG9AujFXpS857bcQSkr6gvKGm+f6+BoFRmj5sYtBoGULB33 9T0BGUJl+GO3nXtoqQ58ITr3M0M= X-Mailgun-Sending-Ip: 198.61.254.9 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-n01.prod.us-west-2.postgun.com with SMTP id 6183855b303715da979a875d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 04 Nov 2021 07:01:47 GMT Sender: tjiang=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id F0314C43460; Thu, 4 Nov 2021 07:01:46 +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 C472CC4338F; Thu, 4 Nov 2021 07:01:45 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 04 Nov 2021 15:01:45 +0800 From: tjiang@codeaurora.org To: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com Cc: 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, zijuhu@codeaurora.org, tjiang@codeaurora.org Subject: [PATCH v3] Bluetooth: btusb: re-definition for board_id in struct qca_version Message-ID: <305e41a55a4c117da86f786c374a57dc@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 As qc btsoc will using big-endian for boardID, so align host with it. Signed-off-by: Tim Jiang --- drivers/bluetooth/btusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 46d892bbde62..a51b1d641043 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2883,7 +2883,7 @@ struct qca_version { __le32 rom_version; __le32 patch_version; __le32 ram_version; - __le16 board_id; + __u8 board_id[2]; __le16 flag; __u8 reserved[4]; } __packed; @@ -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 = (ver->board_id[0] << 8) + ver->board_id[1]; const char *variant; switch (le32_to_cpu(ver->ram_version)) { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project