Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1314796ybh; Thu, 12 Mar 2020 22:16:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtPaEz7PlJKcfC20yEkMLROfPHXTqufwO3AYlKqPx0+ENB6pSINh34ijzLCjhHzkHkezryN X-Received: by 2002:aca:a857:: with SMTP id r84mr5656272oie.65.1584076616102; Thu, 12 Mar 2020 22:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584076616; cv=none; d=google.com; s=arc-20160816; b=Nfj9657gm2iv/m2tir4dZXB2pVPSBr/+uYS2djr9nZ9RoX++utF2U7h22LI/vHQxGq 0eUEjCOdKjq84xfqKm5FRcCpZuPiPDg60viFtvK0xT5Ix/QO/lbXY9wXsEaWnXFkgvg5 J5qe/O4/V5SBQVA05lHtupI3XUk9XBWBmkbbbXGaMgvs83DzJ23Ai1iQRSiBgccrb5sS xmavSCTrLT+b25Uzx4evHaKPHd1NrxPyJkIuOCOwz5YJlyp7eVA6wuUoWM95kcXxbMVN Yel9vRWoovdbyaE7J6wxodBDUJJYTWGgSTGBAO3vN+OeqYu9dyGNs+jN1iFJphT/p+cL f6xw== 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=G+9hfx5oJ0/Rnexg9FoEDXqZU9gtG9ofapVDbocFzFI=; b=bPAzV4nUSdHhVmo0BUzn2FIJVnrpCOJdDDSW87LFYusptevPpseOgG5FMrPNYcZ2dX 96mkODtiiMtjVndwaPDdNk7pdJogltVZ5vkJlheQ3kgBFAKbXCJhwALuA/jJvnbY9c9Q jTibbMVshAUrzdbXDBvsod94M/guzV2EXv61Yh1WhVECIb69/dvA+zjoWaWBGN+EHsQ7 UDtU93oBlpuhxYTPNs8vpB4XeU8OI9H0WFqL5th+oIhCj/jXbEitOxVcnGiasPivy0LD 1azNsSdkyWP8Z1rdWiJxoNT5iOsfhf7nmZ6Y1BWJOdgjor9KBvoxIJoMctslnMKQjkhJ RXkg== 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.16.35; Thu, 12 Mar 2020 22:16:56 -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 S1726406AbgCMFQJ (ORCPT + 99 others); Fri, 13 Mar 2020 01:16:09 -0400 Received: from mga04.intel.com ([192.55.52.120]:63356 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbgCMFQJ (ORCPT ); Fri, 13 Mar 2020 01:16:09 -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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 22:16:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="237098658" 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:16:06 -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:46:33 +0530 Message-Id: <20200313051633.30724-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..c1e8b8d4931e 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", + hdev->name, ver.fw_patch_num); goto complete; -- 2.17.1