Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1306827ybh; Thu, 12 Mar 2020 22:05:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvGoXwSPcnGal+ZJq2X7rvgbqlhYf1sbqMaevaZaaVAlqgYCRejTyuYT/exS5cBgRGNEK3U X-Received: by 2002:a9d:1a4:: with SMTP id e33mr9204061ote.343.1584075925207; Thu, 12 Mar 2020 22:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584075925; cv=none; d=google.com; s=arc-20160816; b=I0CNPBOl02c/2ZDe5aI7rvb72MLGXEOooqDcNr0Dsx6zOkIeUzdWIKsMdW3wnxb2MU LGkSICIkuMmAqeyyzrv2MLOx2YREewESV9AVJeInpcNIi98t+L6aXKXG7bJhLZvAbrJS nbxrKOOOsRKyZJlzOP4bvV4uVCnnN94YFyQzyJufOv+BRFtCK3TsGB2Z/CLp1iZPqid0 SyukEMnm9rZkvnYeTyPQGBDGR7jzl1hVFcWlxu+2JoQsSfp9mJxmkM82BCkmj9yDUCnI X6EV5QPcXiZYSx6eLTgYFL0ZQPLhHBIkrTnMlSSytLN60YNnmpebquYctsGTq0yQMDMj badQ== 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=CuQFeblhRRUT9cSRC8queDQNPnEBO1lbut3nGlrFEfA=; b=RF4UggT9Bq4MxUzT2sRMOGOEQKO+RA+cillIrek2A+0uiAQ7EB9b2olTF85bPdrmNe +O1ZpkjMu4v/vp8do20yjAn2TNbCHSXB8q915tb35G5oquYUT/TEP0YEnVyy4bmB6ZTY jRs5tcDzD5BWuov0J5h6GWSoDkWtk+stSOeAqPQIj/KfxctyUnqBge08EKXDSWBM6WpC D3sQgofThgNMrndUoYZpHqXH8ciINCnEUp/bwtZOKw2Cbn9qcPw9XSJtOjXJMLo9IN3u hXxmLkAP6gI0CK1a6GoQObf1MdSAPv6HBzu88bP1zNmdcaTHnvtC+rJf4JyO1DCYrQts mzsA== 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 r71si3862733oie.265.2020.03.12.22.04.55; Thu, 12 Mar 2020 22:05:25 -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 S1726395AbgCMFEG (ORCPT + 99 others); Fri, 13 Mar 2020 01:04:06 -0400 Received: from mga06.intel.com ([134.134.136.31]:41642 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgCMFEG (ORCPT ); Fri, 13 Mar 2020 01:04:06 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 22:04:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="278088218" Received: from unknown (HELO intel-Lenovo-Legion-Y540-15IRH-PG0.iind.intel.com) ([10.224.186.95]) by fmsmga002.fm.intel.com with ESMTP; 12 Mar 2020 22:04:02 -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 v2] Bluetooth: print fw build version in power-on boot Date: Fri, 13 Mar 2020 10:34:31 +0530 Message-Id: <20200313050431.30321-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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index f5924f3e8b8d..86bac76da852 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_dev_info(hdev, "Intel Bluetooth fw patch 0x%02x completed and activated", + hdev->name, ver.fw_patch_num); goto complete; -- 2.17.1