Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1316284ybh; Thu, 12 Mar 2020 22:19:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuIdp/UzshpA2dgi5jwtQ95MQ1NYbzCnUGsiLQiI/9hu9/CDMvoSeYAHYiho6yQSJC/7gPx X-Received: by 2002:a9d:2c69:: with SMTP id f96mr9062134otb.62.1584076742252; Thu, 12 Mar 2020 22:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584076742; cv=none; d=google.com; s=arc-20160816; b=Be+P8ofmb5LOwqSwGAl8uGGdnGF4A7yc/sh10xWe9n4qSv9/vnnGaRGsaOtltPiHyl fu1QqcyfgGhtJgaq8jgNENaQShGx+whj5gPl4G+WnZtTWAU6YMWkuNLrClXKAVftrZS6 eSyMmPZl+BlxO9G1GCgvqkGD3D3u2TNmE75bpN7ObWomvzRBJyAYV/J/jNtXa7TTfNvC N0uBUXmm78BLoB8jfNx3mddmnoXHzgcj7LIB9ln5zqTyU5qHO3qmY64YcQDCvAUF5bE9 s26cPqBBvowOz4gL/LCxY4z8HWBMNkPYJMwCXBy+7+I1SAFndHo+WKxgecXillHrhpCx U0Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=a+ew/KLNpDxzGIvQZXwABCzsSPZePKrIlBjTgecOpBU=; b=RHB1RMlfIJcpDFDgOwW5aczuaqYie4Q/96sQ25NJlJA6H/Z+iKLybvjJzjQ+Z9cVc8 6e2D8crxY6ypywI2HXwnLOX597Mp7uHFKPOgH/0+2YNgGhs4WVkqY9EUaRW8NkbBBhnZ qmg/X0jZcSKRqL/IASchrY3l+VwtXAb2zI67U9m15CVHhlHWYnfUnSqVVAByI6FJTG6Q /Y6U1yVJ7rcMfi3X7tH5ySvrEQ0bw6LgpNoyB/E+zfRRGfgFiK4qnaLXh5S58p0PIzjx 40gOa7mxdYQI1m4yQsN4wJY/S1alTzxp2i9DB57LmJ0qC/tCWmzfQt7JhjfTcXyg7TMl Emrg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t125si3585911oie.167.2020.03.12.22.18.49; Thu, 12 Mar 2020 22:19:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbgCMFSm (ORCPT + 99 others); Fri, 13 Mar 2020 01:18:42 -0400 Received: from mga14.intel.com ([192.55.52.115]:36600 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgCMFSm (ORCPT ); Fri, 13 Mar 2020 01:18:42 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 22:18:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="237099185" Received: from unknown (HELO intel-Lenovo-Legion-Y540-15IRH-PG0.iind.intel.com) ([10.224.186.95]) by orsmga008.jf.intel.com with ESMTP; 12 Mar 2020 22:18:39 -0700 From: Amit K Bag To: linux-firmware@kernel.org Cc: linux-bluetooth@vger.kernel.org, ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com, Sukumar Ghorai , Amit K Bag Subject: [PATCH v3] Bluetooth: print fw build version in power-on boot Date: Fri, 13 Mar 2020 10:49:08 +0530 Message-Id: <20200313051908.30815-1-amit.k.bag@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Sukumar Ghorai 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 Signed-off-by: Sukumar Ghorai --- drivers/bluetooth/btusb.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index f5924f3e8b8d..db6211f34300 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -1930,7 +1930,14 @@ 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_dev_info(hdev, "Intel BT fw patch 0x%02x completed & activated", + ver.fw_patch_num); goto complete; -- 2.17.1