Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2764802pxj; Mon, 10 May 2021 10:12:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQw+Bgmr2o2p6PmObwp8/p4htBYZG29wRV6+Nj4GVGP/IWOELC0wTN1Qw1IvNdNXE6kobf X-Received: by 2002:a5e:9b06:: with SMTP id j6mr18223019iok.117.1620666748258; Mon, 10 May 2021 10:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620666748; cv=none; d=google.com; s=arc-20160816; b=gQNrU70ICf2SLGwgvtyeOy5eeXA2hwVEt59zTKtxRM4akQBuU9l7vpXMIoCRmS59rG hkRQLQotqd7mbg0sBxk6m8lHxCFdodPz47zTusXhevW4G0AthiyBiZ0/mVaZEL6zXaBn ANiL5MSV5KP5WnGAqsph5ZiVbGGQyW3HH8BvPvtRm67EZGDzJj9X28wtvTY3bxssdNep IHCKTCtO64Vi0ou+UuLWh701KTNDU5iLEexdDO7qMAFqvJJ1wbWC4qVfPMD4reD6Ig0Y 0MNj4WS55ylJQvplee/CpNPoVQUL1Fox7vyQRe7srxX9FObatBSJVfhry+XiWdInPEnk QzyQ== 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=yFWWK3TE0vWmOc5WunVL+VHFoaHbjzJfXbG1CeyzwUU=; b=Z3b/jGK8OKNbChTpnNk3FBTLqguNB6ZRkL9JtABadfzqg7GMJfcUUdL3tNmGlNSatK R7s9EK+uC6ISv8mAKb37Gm8NOF6YOJ2miQbQJXXAmL+fdbmxo3ns3OG72TVhjHNAgeM3 m32yNjGWsK/BzNDaCqFiQ6K/TL3RpC2YxsuvYsCYFAONonOXF8YMEZQwy7V6VlSWR4aI Tv0MRsQ9epnXcM4VU2lSJkDMuRUHd0eqJXcjRHk2M+CsiCLd+ma/p6FFCvdK8hcoP8iG Eww3EbJkNk9yYVKUPJ4hi9JDs3x2G83K+ir/yPWzdFcxmmGRZjAPCgrRpa+1inGvqu/f e1EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DQjVhjbV; 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 7si16953091ilj.22.2021.05.10.10.12.15; Mon, 10 May 2021 10:12:28 -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=DQjVhjbV; 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 S232257AbhEJRLn (ORCPT + 99 others); Mon, 10 May 2021 13:11:43 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:25606 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232319AbhEJRLi (ORCPT ); Mon, 10 May 2021 13:11:38 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1620666633; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=yFWWK3TE0vWmOc5WunVL+VHFoaHbjzJfXbG1CeyzwUU=; b=DQjVhjbVxbR+b17fVzHUBPfNbJGMNFqZlTxwbQonFWf5OuGQ6PbN/1OlY01vlcNVAuv74gid YocYVliaKIZjUF9UyTclK7tNl3Zv5lAdaI+YnMQgIy95n5kumhEsMzYOVUDwY7YmKDuyYR5y n9EQtB7IMfMPzTGmOAT2TjfyQHw= 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-n01.prod.us-east-1.postgun.com with SMTP id 609968dc87ce1fbb567ec481 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 10 May 2021 17:09:48 GMT Sender: gubbaven=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EDEB5C43143; Mon, 10 May 2021 17:09:47 +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: gubbaven) by smtp.codeaurora.org (Postfix) with ESMTPSA id C3594C433D3; Mon, 10 May 2021 17:09:42 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 10 May 2021 22:39:42 +0530 From: gubbaven@codeaurora.org To: Marcel Holtmann 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 Subject: Re: [PATCH v3 3/5] Bluetooth: btqca: Moved extracting rom version info to common place In-Reply-To: References: <1620322392-27148-1-git-send-email-gubbaven@codeaurora.org> <1620322392-27148-4-git-send-email-gubbaven@codeaurora.org> Message-ID: <297a32b472d314e07b4f1a99784c5a9e@codeaurora.org> X-Sender: gubbaven@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcel, On 2021-05-07 13:23, Marcel Holtmann wrote: > 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. > [Venkata]: Sure, I will update in next patchset. > Regards > > Marcel Regards, Lakshmi Narayana.