Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp566507ybh; Thu, 12 Mar 2020 07:10:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtcXOvW/zibGHZV41nbrFsy+V1B4XIx0cAU0Z7o84j2VO3mkURplLdbDxBtnMv09E6Hr5tM X-Received: by 2002:a9d:228:: with SMTP id 37mr6753660otb.52.1584022254078; Thu, 12 Mar 2020 07:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584022254; cv=none; d=google.com; s=arc-20160816; b=rBA5YUNPQ57w3s2fI45b1HBy0CDxCi3KTW9hrGjq5omX57HwMgljsJAgkuUpIDmp8C PVHFcqTHa6/OU9NpabPPlghkE197aeeQ6PRt5KAaMBp+YLyxiaOHEMeMNrmbmVA1pYpa Z2o4SrAqtj0jv5Jp+lGURNOdA6TrGDmWQL+B0G9FqMqZoTn1K+eB7e0QMe8B3GpvAR00 ytBUcsg9qplG1nqPkKFxlel9Hl26Q1DJLFvDZybPTr4gAHf72MhWXiliRHwZ+v4oQ79J SPq2pSEaO0rsjlowQ1vImsuTJEfia/+vBjvSCsQ70Laff6lkf88F31WKJ0LWp+uhp1kM CsnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=3PXlurHRYGs2scly38lkeNYCIITY2MF00caEm9Rpd34=; b=pPfmPpRNTaGDFtF3Lc1IIdRE1UplXzajZwMKp338voRbogvMlbTmtPlHTrxZ4pAxRB o8X4M4lz6jJZCW8Rehz/I1ZQHauNflNQOjpKG6c2mh2XPgUAKubu6CQMOuXhbQMV68Fw +o0eSLQ+HhijVLIZbaGXY0NJNpc2agNTM/k1wkklRPLHB3TDM4rb8AVxVxvB+aOklI4z LaRQJR9CWOTAqv2hgufdjNNyH8hZX0TyoBi37cmP31ikMBZmKFF6pQacAk4rsDd6HaWP gFiRnTwxJq42Rhy7vr3xJZlb/xYf30CMG4T58wP9o4242zFyhkp0d/6ghwwoe8X0TiOH yTiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n62si2832058oig.196.2020.03.12.07.10.15; Thu, 12 Mar 2020 07:10:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727446AbgCLOI5 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 12 Mar 2020 10:08:57 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:36155 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727255AbgCLOI4 (ORCPT ); Thu, 12 Mar 2020 10:08:56 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 444DFCECF4; Thu, 12 Mar 2020 15:18:24 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [PATCH] Bluetooth: print fw build version in power-on boot From: Marcel Holtmann In-Reply-To: <20200312102142.26538-1-amit.k.bag@intel.com> Date: Thu, 12 Mar 2020 15:08:54 +0100 Cc: linux-firmware@kernel.org, linux-bluetooth@vger.kernel.org, ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com, Sukumar Ghorai Content-Transfer-Encoding: 8BIT Message-Id: <63E6C606-A941-4FA4-B21D-DCC564DB41F3@holtmann.org> References: <20200312102142.26538-1-amit.k.bag@intel.com> To: Amit K Bag X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Amit, > To determine the build version of Bluetooth firmware to ensure reported > issue related to a particular release. This is very helpful for every fw > downloaded to BT controller and issue reported from field test. > > Signed-off-by: Amit K Bag > --- > drivers/bluetooth/btusb.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c > index f5924f3e8b8d..d4328008a714 100644 > --- a/drivers/bluetooth/btusb.c > +++ b/drivers/bluetooth/btusb.c > @@ -1930,7 +1930,12 @@ static int btusb_setup_intel(struct hci_dev *hdev) > if (err) > return err; > > - bt_dev_info(hdev, "Intel firmware patch completed and activated"); > + /* Need build number for downloaded fw patches in every power-on boot */ > + err = btintel_read_version(hdev, &ver); > + if (err) > + return err; > + BT_INFO("%s: Intel Bluetooth fw patch 0x%02x completed and activated", > + hdev->name, ver.fw_patch_num); don’t re-introduce the usage of BT_INFO, we have bt_dev_info. Regards Marcel