Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2257845ybh; Sun, 15 Mar 2020 23:07:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvqwb2Julfomi0TLAbMOhLS/Hs1MQGEMb+vdPwGoggWM5tI2c0waY2R5uWA4K/viaDeJ4cN X-Received: by 2002:a05:6808:2ce:: with SMTP id a14mr5176790oid.175.1584338842703; Sun, 15 Mar 2020 23:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584338842; cv=none; d=google.com; s=arc-20160816; b=OjOJzVt1Ivv6By7TJHtc0hH88tnyXfDQ+MkanTehhGDeDw9xpdJ+ubEqZpa6toGSsn K26MQLYOLihlqe4fTSQD6VmMdguouNIzhJMfcIp7rugjkuZ3fXgazSdcecC7/9ycTW5B qAyE+x1Vag/Jp+bTCaVMUcMNn1USpyCUACoYzjqGi63uZbxqAv4ZmfkM2Ph/SuqhrTx9 AiV7kJWhGQ3JSwcauxEuRbe7J1vuHitZOqUUIY3+2Wrx5q2kerX8Hbiv3hzvuYHHWNLF nMrVCK7JOJ3CaKu6ZCRmlCAlggYZEfp8HFNJbR8RDrmrM/Mz8fETIDpU7ilVlkBGVmg5 hjWQ== 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 :ironport-sdr:ironport-sdr; bh=a+ew/KLNpDxzGIvQZXwABCzsSPZePKrIlBjTgecOpBU=; b=q/du06c3qG3/vd/5xrOgBolJZLy4AWolI41UO8QjDzPja+zY9NOzJTXVErAmZK0ehl 8VjzXvpb94T59geSyTeoINSUlZ/ZCAU29ppFgzlezJYqn4PT74Tu36ZoDHTVSCCBf2eP PUO0+l7XpArLeM2yiGiiE3AI8ZkLqFsVeOH3wHH/FTdbSzLzu7fN0Meb039AYRJ/VKoA AP6DoAHBTlA+oLb+clZOgLUDX6PC+w46xwLvbzYk9WQ1UZdPOLNe5XtrgPLPTj4QZY2d aqQt33XvmaTNB6iKdaVi+zJCkfL8WQgEj4W5uE1gR3Sp0DiySCjYlS4DsaxBFT5D2xFz 7s5Q== 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 n14si9941078otq.13.2020.03.15.23.06.52; Sun, 15 Mar 2020 23:07:22 -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 S1729450AbgCPGGv (ORCPT + 99 others); Mon, 16 Mar 2020 02:06:51 -0400 Received: from mga03.intel.com ([134.134.136.65]:23343 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729319AbgCPGGv (ORCPT ); Mon, 16 Mar 2020 02:06:51 -0400 IronPort-SDR: ekoN9CIPrdXxc4Dbb4DZbww4ZavU0xdzvLqOzPSVOpqsA916HKQSOL0hDlaqN6T5QAa+8AQ3tR X9rFRxX9el1g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2020 23:06:51 -0700 IronPort-SDR: AQVaNL2s100qVsUVErnbQeSudEOQm6mDauIM078GR6yNiPJ5bY2FQndKeNsUq9zOKHBl14vu7E qKDXpFq69+3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,559,1574150400"; d="scan'208";a="267458106" Received: from unknown (HELO intel-Lenovo-Legion-Y540-15IRH-PG0.iind.intel.com) ([10.224.186.95]) by fmsmga004.fm.intel.com with ESMTP; 15 Mar 2020 23:06:48 -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 v4] Bluetooth: print fw build version in power-on boot Date: Mon, 16 Mar 2020 11:37:18 +0530 Message-Id: <20200316060718.30948-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