Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp241359pxy; Fri, 7 May 2021 02:06:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyewZaC5lnNz/m5fjNMjLqETqG1GMQ7EeXhFQFmPJFA7WJKUUt96BktBWuy+Vpxwayx5I7U X-Received: by 2002:a05:6402:1c0d:: with SMTP id ck13mr10182044edb.170.1620378385839; Fri, 07 May 2021 02:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620378385; cv=none; d=google.com; s=arc-20160816; b=cZ8hCDV2HsrpHFP3qJmc2A//B+cm8BdToIEXqZAX2G3/mC0tJQ0at+Seq86zsQMRkR 0rPy9kMLYYrcbBGe5Cna+rpBVdi2YlCBsjSrNv5QtwZJgzTol7Qz1dYf5L50RhFNB/RD MNDjrtgO+iCRu6Ylkw5nP6fvWUULYK4m0l5kH2Inm6e/03eqVlBnMRfoApHfPWOio0fw 7LM9uyVB+BbAXLrhZTtxnt5ao+QnlJpyUwxdUUcP6DUw4POGB1gWhGLawnmlkdoUa4Un ywi3X0oPk0eRbEFWaq9AciuSQWW1xsrfcDblw8XXSQNbbFGiKkHs9PaOkZpJQs3O0lyV EY6g== 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=xntf4FCCaWmLr6cyYRdcOCc8uZXmGpJ4MW1iWUIxfs4=; b=bO0ZwHLd4L00vcatMe3nWH332VHxJu3ZUgk1cS03+SQnPuhYSHKQMRBnVI0xowGOoE RDQ+ICO+sYQISBrst9YiqAdkU3PzFjDbIZ6fna5QosxSTiRObqay1UmlnhjQVPIt8/JD 6ok7YGyjbeQ0uvhPzlz39zfDfnSMuY08RHzp4jHUKCGvcel/5d4VO8x3bmcpHbO1lHfD Did/THnIYkRvG39kSF1PiH22MzCmWw50CkG9AtqIplQPzFbRY/fa8oNREJQnuHBa4idN kB7dAsMqzzT5eK6P8UvLwl5aJOrYr1EM9DED+4V8nJ0D4XKgNMP1yj+8rQAFSivfYKLW B/mg== ARC-Authentication-Results: i=1; mx.google.com; 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 c13si4855901eds.367.2021.05.07.02.06.01; Fri, 07 May 2021 02:06:25 -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; 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 S234954AbhEGHyp convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 May 2021 03:54:45 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:48433 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234951AbhEGHym (ORCPT ); Fri, 7 May 2021 03:54:42 -0400 Received: from smtpclient.apple (p4fefc624.dip0.t-ipconnect.de [79.239.198.36]) by mail.holtmann.org (Postfix) with ESMTPSA id 8CB8BCECD9; Fri, 7 May 2021 10:01:26 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: [PATCH v3 3/5] Bluetooth: btqca: Moved extracting rom version info to common place From: Marcel Holtmann In-Reply-To: <1620322392-27148-4-git-send-email-gubbaven@codeaurora.org> Date: Fri, 7 May 2021 09:53:35 +0200 Cc: Johan Hedberg , devicetree@vger.kernel.org, Matthias Kaehlcke , open list , Bluetooth Kernel Mailing List , Hemantg , MSM , Balakrishna Godavarthi , Rocky Liao , hbandi@codeaurora.org, abhishekpandit@chromium.org Content-Transfer-Encoding: 8BIT Message-Id: References: <1620322392-27148-1-git-send-email-gubbaven@codeaurora.org> <1620322392-27148-4-git-send-email-gubbaven@codeaurora.org> To: Venkata Lakshmi Narayana Gubba X-Mailer: Apple Mail (2.3654.80.0.2.43) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Venkata, > Moved extracting rom version info to common place as this code is > common in all if else ladder in qca_uart_setup. > > Signed-off-by: Venkata Lakshmi Narayana Gubba > --- > drivers/bluetooth/btqca.c | 15 ++++++--------- > 1 file changed, 6 insertions(+), 9 deletions(-) > > diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c > index 320c555..658fd8e4 100644 > --- a/drivers/bluetooth/btqca.c > +++ b/drivers/bluetooth/btqca.c > @@ -533,24 +533,21 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, > > config.user_baud_rate = baudrate; > > + /* Firmware files to download are based on ROM version. > + * ROM version is derived from last two bytes of soc_ver. > + */ > + rom_ver = ((soc_ver & 0x00000f00) >> 0x04) | > + (soc_ver & 0x0000000f); > + please try to align this properly. Regards Marcel