Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp356291ybh; Thu, 12 Mar 2020 03:21:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vulhPEHsVCEsG4nd+imTxirRRMe86oeBM9OiTynCtl/deYODiIOZm5MKsPkvr9mGnWhyt7o X-Received: by 2002:a9d:171e:: with SMTP id i30mr5770643ota.327.1584008509552; Thu, 12 Mar 2020 03:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584008509; cv=none; d=google.com; s=arc-20160816; b=ve0eatD5Fwhh/cTNQZMq3mvPTdGstiNA/01b2gnpMPdqnvrbLCDSLX5VD94m3/rL2e bhntOH77cJSBTPAZYSFWE5X1B/cyVZNTURHSU333YRABEMebP32IlP7a/LMvGkge6Cqd AZEDmEoGtkC9t4hILMsrl5JX1mYN6JKwxSyicGXnxHRHT3u4Bk8xQtq9rlsu+yMhZQxi Jh8X4vbYaUW630fKnXYy8ZeOUkEdOMAf24cuOJxWcGujuj+IWT38opB3brU4CMnQVw45 B8GrVQSe0sU63S2LCRQLl1N6sp2/aaZ7OwjsH4bXxtTu8mo9rIBEi1ydKSmlhsi+DBQz BeRQ== 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=dT5AXT8t21wpJ3c+8im1KjCgFm0RQLKSSgblOj85+J4=; b=x24PthgaAmHDBl5+5yOEBfhX1WplxQRN9dm9x4H4eVnWWzQd8EUoyu4gDwAp2KBcBO sW7mqDs4IIqmJ97UBsEPAhZtfuEYzvX9glJJ4UqgItyk9cTCl9U+2063Lrl505Kl4cDy nyAwb8vpG1bRkXGaRWgp/eUJBlmbkR1AUHscUo+brm+l+NvusbOte3X9pKZCknEzOqCH WC4WFbcOVDPiUE2aPVmzAiHwLEYZL1GFSVWvGu0gPxxXhrcnSc+s60HCJk84hwOPNuq7 vNUu6n2RWK4j3DGE2HSPZoMsehuO4pUmVlLtImob5fTEu02jZoV/tcTl9JCrlLUhddxk Ojng== 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 t22si2391256oth.211.2020.03.12.03.21.25; Thu, 12 Mar 2020 03:21:49 -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 S1726310AbgCLKVR (ORCPT + 99 others); Thu, 12 Mar 2020 06:21:17 -0400 Received: from mga11.intel.com ([192.55.52.93]:56439 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbgCLKVR (ORCPT ); Thu, 12 Mar 2020 06:21:17 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 03:21:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,544,1574150400"; d="scan'208";a="236589931" Received: from unknown (HELO intel-Lenovo-Legion-Y540-15IRH-PG0.iind.intel.com) ([10.224.186.95]) by fmsmga008.fm.intel.com with ESMTP; 12 Mar 2020 03:21:13 -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] Bluetooth: print fw build version in power-on boot Date: Thu, 12 Mar 2020 15:51:42 +0530 Message-Id: <20200312102142.26538-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 --- 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); goto complete; -- 2.17.1